Skip to content

Instantly share code, notes, and snippets.

@Aricg
Created November 13, 2012 15:40
Show Gist options
  • Save Aricg/4066414 to your computer and use it in GitHub Desktop.
Save Aricg/4066414 to your computer and use it in GitHub Desktop.
case $multiple_nodes {
yes: {
file { 'rabbitmq.config':
ensure => file,
path => '/etc/rabbitmq/rabbitmq.config',
content => template("${module_name}/rabbitmq.config"),
owner => 'rabbitmq',
group => 'rabbitmq',
mode => '0644',
notify => Class['rabbitmq::service'],
}
}
no: {
file { 'rabbitmq.config.stage':
ensure => file,
path => '/etc/rabbitmq/rabbitmq.config',
content => template("${module_name}/rabbitmq.config.stage"),
owner => 'rabbitmq',
group => 'rabbitmq',
mode => '0644',
notify => Class['rabbitmq::service'],
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment