Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apt-key fixes to properly work on Debian 9 #822

Merged
merged 2 commits into from
Nov 16, 2018

Conversation

ekohl
Copy link
Collaborator

@ekohl ekohl commented Nov 14, 2018

On modern Debian(-based) distros this is needed for gpg to function when no TTY is available. Since Puppet often runs from cron or a daemon, this is often the case.

By using autorequire we can clean up the dirmngr handling around apt::key.

Verified by running:

PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_setfile='debian9-64{hypervisor=docker}' BEAKER_TESTMODE=apply bundle exec rspec spec/acceptance/apt_key_provider_spec.rb

On modern Debian(-based) distros this is needed for gpg to function when
no TTY is available. Since Puppet often runs from cron or a daemon, this
is often the case.
@ekohl
Copy link
Collaborator Author

ekohl commented Nov 14, 2018

This may be needed now because of Debian 9.6 which did backport things to gnupg2.

@zeromind
Copy link

Corresponding Debian bug for gpg: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913614

@ekohl
Copy link
Collaborator Author

ekohl commented Nov 15, 2018

Looks like they suggest to use --batch in any case.

@HelenCampbell
Copy link

Passed this through the adhoc pipeline and went green on Debian 9, as a result getting this merged in to address the issue. Thanks @ekohl for another solid fix!

@HelenCampbell HelenCampbell merged commit 3948cd3 into puppetlabs:master Nov 16, 2018
@ekohl ekohl deleted the apt-key-fixes branch November 16, 2018 14:38
@ekohl
Copy link
Collaborator Author

ekohl commented Nov 16, 2018

@HelenCampbell thanks for merging. I'd be great if there was a patch release so I don't have to apply workarounds in modules. Any plans around that?

@HelenCampbell
Copy link

@ekohl Yep there's a ticket in progress for releasing the module, you can track it here: https://tickets.puppetlabs.com/browse/MODULES-8226
It may be Monday before we get it out the door depending on how fast our pipelines run.

@ekohl
Copy link
Collaborator Author

ekohl commented Nov 16, 2018

Thanks! Watching the issue and I'll just get back to doing my own release then :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants