Skip to content

Instantly share code, notes, and snippets.

@awaxa
Last active August 29, 2015 14:17
Show Gist options
  • Save awaxa/380f5b20ac3bd6a65810 to your computer and use it in GitHub Desktop.
Save awaxa/380f5b20ac3bd6a65810 to your computer and use it in GitHub Desktop.
# 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