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

Force owner and mode on ppa files #227

Merged
merged 1 commit into from Feb 25, 2014

Conversation

daniellawrence
Copy link

This will make sure the generated files in ${sources_list_d} are a standard ownership and file mode.

I reached a problem with a module was forcing ownership of all files generated by the mode to be owned by the application that also include adding an apt::ppa resource.

eg.

File {
  mode => '0600',
  owner => 'applicationname',
  group => 'applicationname',
}
apt::ppa { 'ppa:extra-packages/ppa': }

Would cause the following permissions

ls -l /etc/apt/sources.list.d/extra-packages
-rw------- 1 applicationname applicationname  69 2014-02-04 10:46 extra-packages.list

Then the knock-on was apt-check was not able to read the new ppa configuration.

/usr/lib/update-notifier/apt-check
E: Error: Opening the cache (E:Opening /etc/apt/sources.list.d/extra-packages.list - ifstream::ifstream (13: Permission denied), E:The list of sources could not be read.)

@daenney
Copy link

daenney commented Feb 19, 2014

This is good. @apenney @hunner, please?

@daenney
Copy link

daenney commented Feb 19, 2014

@daniellawrence Could you perhaps add your changes to the ppa spec too so we ensure this behaviour doesn't occur again?

@daniellawrence
Copy link
Author

@daenney -- I see what I can do about fixing up the ppa spec to stop regressions.

@hunner
Copy link

hunner commented Feb 25, 2014

Arg. This is due to resource defaults being dynamically scoped still, which is a bug in puppet.

hunner added a commit that referenced this pull request Feb 25, 2014
@hunner hunner merged commit 4c9174e into puppetlabs:master Feb 25, 2014
@uu1101
Copy link

uu1101 commented Mar 9, 2014

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.

None yet

5 participants