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

Do not use the defined function? #102

Open
rauchrob opened this issue Mar 25, 2015 · 0 comments
Open

Do not use the defined function? #102

rauchrob opened this issue Mar 25, 2015 · 0 comments

Comments

@rauchrob
Copy link

I have just had a couple of hours debugging a strange problem in deploying a Puppetmaster (on RHEL7, with passenger compiled from gem).

As I finally found out, it does matter in which order I declare the puppet::master and puppet::agent classes, e.g. the following manifest doesn't get successfully applied

include puppet::agent
include puppetdb

class { 'puppet::master':
  storeconfigs => true,
}

whereas if I use the following variant, everything works as expected:

include puppetdb

class { 'puppet::master':
  storeconfigs => true,
}

include puppet::agent

The reason is probably the use of the defined functions in manifests/agent.pp and manifests/master.pp, which is, as I understand now, parse-order dependent.

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

No branches or pull requests

1 participant