Last active
August 29, 2015 14:17
-
-
Save awaxa/380f5b20ac3bd6a65810 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # set a global variable $::noop to true or false (without quotes) using an External Node Classifier | |
| case "${::noop}" { | |
| 'true','false': { | |
| ini_setting { "puppet.conf agent:noop=${::noop}": | |
| ensure => present, | |
| path => "${::settings::confdir}/puppet.conf", | |
| section => 'agent', | |
| setting => 'noop', | |
| value => "${::noop}", | |
| noop => false, | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment