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

fix for concat error #343

Merged
merged 1 commit into from
Jan 11, 2014
Merged

fix for concat error #343

merged 1 commit into from
Jan 11, 2014

Conversation

flypenguin
Copy link

This fixes a - in my opinion - critical bug which leads to a puppet run abort.

using a fairly new concat and postgresql module, this happens:

  • postgresql is the first module which uses concat which gets realized by puppet
  • concat was not yet initialized, so it does its initialization (create /var/lib/puppet/concat ...)
  • puppet aborts with a user postgres not found error

What happens is that on first run, without being initialized, the concat module wants to create its helper directories. But postgresql defines a standard user for all File{} objects, which does not yet exist (the package is not yet installed), and would be horribly wrong anyway.

I did not find any practical use of the general File{} definition, so I removed it, and so far it works.

@domcleal
Copy link
Contributor

I just hit this too and came to the same conclusion.. I can't see any use of the File { } defaults. It's deprecated in concat 1.1.0 to specify owner/mode etc on the fragments anyway.

@domcleal
Copy link
Contributor

For the record, without this you can get the following error with puppetlabs-concat 1.1.0:

err: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat]/ensure: change from absent to directory failed: Could not set 'directory on ensure: Could not find user postgres at /etc/puppet/modules/concat/manifests/setup.pp:49

apenney pushed a commit that referenced this pull request Jan 11, 2014
@apenney apenney merged commit 5bf5f5f into puppetlabs:master Jan 11, 2014
@flypenguin flypenguin deleted the modified branch January 13, 2014 07:42
@Ramesh7 Ramesh7 added the bugfix label Jun 12, 2023
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.

4 participants