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

Added Package require #153

Merged
merged 3 commits into from
Jan 27, 2016
Merged

Added Package require #153

merged 3 commits into from
Jan 27, 2016

Conversation

mooreandrew
Copy link
Contributor

When trying to integrate this module with my puppet environment, it kept claiming that the named user wasn't present. This was because the package hadn't yet been installed.

Error: Could not set 'present' on ensure: Could not find user named at 46:/vagrant/puppet-control/modules/dns/manifests/server/default.pp
Error: Could not set 'present' on ensure: Could not find user named at 46:/vagrant/puppet-control/modules/dns/manifests/server/default.pp
Wrapped exception:
Could not find user named
Error: /Stage[main]/Dns::Server::Default/File[/etc/sysconfig/named]/ensure: change from absent to present failed: Could not set 'present' on ensure: Could not find user named at 46:/vagrant/puppet-control/modules/dns/manifests/server/default.pp

This change makes sure the the file doesn't get created before the package (and user) is there.

@ajjahn
Copy link
Owner

ajjahn commented Jan 26, 2016

Thank you. Could you tack on a spec that tests this behavior?

@mooreandrew
Copy link
Contributor Author

Added Spec Tests

solarkennedy added a commit that referenced this pull request Jan 27, 2016
@solarkennedy solarkennedy merged commit c545493 into ajjahn:master Jan 27, 2016
@solarkennedy
Copy link
Collaborator

Thanks!

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

Successfully merging this pull request may close these issues.

3 participants