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

Feature 2307 - Include ::daemon or ::cron classes based on runmode param value #48

Merged
merged 3 commits into from
Mar 12, 2013

Conversation

fatmcgav
Copy link
Contributor

Updated code to add a 'runmode' param which can be used to set Puppet agent up as using ::Cron or ::daemon classes based on value.

  • New Param added - runmode. Defaults to 'service'.
  • Runmode param added to init.pp
  • Config.pp updated with a case statement to include relevant class based on runmode value. Fail for any unsupported values.

fatmcgav added 2 commits March 12, 2013 14:51
* Added a $runmode param which defaults to 'service'.
* Created paramater in init class. 
* Added a case statement to config class to include relevant class based
on runmode value.
setups which have puppet and puppet::cron defined.
include ::puppet::cron
}
default: {
fail("Runmode of ${puppet::runmode} not supported by puppet::config!")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incredibly nit-picky, I know, but this should be ${::puppet::runmode} :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh... Have fixed this else-where and then done it here... Fixing now :)

@GregSutcliffe
Copy link
Member

Looks good, apart from the most tiny change ever. @domcleal ?

@domcleal domcleal merged commit b50d30c into theforeman:master Mar 12, 2013
@domcleal
Copy link
Contributor

Merged, thanks for the patch @fatmcgav!

@fatmcgav fatmcgav deleted the feature_2307 branch March 12, 2013 17:30
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.

None yet

3 participants