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

(MODULES-8418) Fix /etc/apt/auth.conf owner changing endlessly #836

Merged
merged 1 commit into from
Jan 3, 2019

Conversation

antaflos
Copy link

@antaflos antaflos commented Jan 2, 2019

This PR takes the great work of @voegelas in #829, rebases it on current master and extends the spec tests for managing /etc/apt/auth.conf to cover setting the file's owner under different operating systems (Debian 7/8/9 and Ubuntu 14.04/16.04/18.04).

@eimlav
Copy link

eimlav commented Jan 3, 2019

@antaflos Thanks for taking this on and adding tests. Everything looks good to me. Would it be possible for you to modify your main commit message to use a ticket number i.e. "(MODULES-1234) - Fix /etc/apt/auth.conf..." ? You can find more info on the CONTRIBUTING page. Cheers!

@eimlav eimlav added the bugfix label Jan 3, 2019
@antaflos
Copy link
Author

antaflos commented Jan 3, 2019

@eimlav will do, but I can't find a suitable ticket to reference at https://tickets.puppetlabs.com/browse/MODULES-7583?jql=text%20~%20puppetlabs-apt%20ORDER%20BY%20updated%20DESC

I'll have to create one first.

@eimlav
Copy link

eimlav commented Jan 3, 2019

@antaflos Yep just create a ticket, amend your commit message and that should do it!

@antaflos antaflos changed the title Fix /etc/apt/auth.conf owner changing endlessly (MODULES-8418) Fix /etc/apt/auth.conf owner changing endlessly Jan 3, 2019
Starting from Debian 9 and Ubuntu 16.04 the user _apt owns the file
/etc/apt/auth.conf. In previous versions it is owned by root.

Set ownership of /etc/apt/auth.conf correctly based on OS version and
add spec tests to cover managing the file's owner under Ubuntu 14.04,
16.04 and 18.04 as well as Debian 7.0, 8.0 and 9.0.
@antaflos
Copy link
Author

antaflos commented Jan 3, 2019

I have created https://tickets.puppetlabs.com/browse/MODULES-8418 and squashed the two commits into one, amending the commit message with the MODULES-8418 reference.

@eimlav
Copy link

eimlav commented Jan 3, 2019

LGTM. Thanks for the contribution! :)

@eimlav eimlav merged commit c28f30a into puppetlabs:master Jan 3, 2019
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.

2 participants