/usr/share/puppet/modules.available/puppet-community-mcollective/manifests/common/config/connector/rabbitmq/hosts_iteration.pp is in puppet-module-puppet-community-mcollective 0.6.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | # private define
# $name will be an index into the $mcollective::middleware_hosts array + 1
define mcollective::common::config::connector::rabbitmq::hosts_iteration {
mcollective::common::setting { "plugin.rabbitmq.pool.${name}.host":
value => $mcollective::middleware_hosts[$name - 1], # puppet array 0-based
}
$port = $mcollective::middleware_ssl ? {
true => $mcollective::middleware_ssl_port,
default => $mcollective::middleware_port,
}
$fallback = $mcollective::middleware_ssl_fallback ? {
true => 1,
default => 0,
}
mcollective::common::setting { "plugin.rabbitmq.pool.${name}.port":
value => $port,
}
mcollective::common::setting { "plugin.rabbitmq.pool.${name}.user":
value => $mcollective::middleware_user,
}
mcollective::common::setting { "plugin.rabbitmq.pool.${name}.password":
value => $mcollective::middleware_password,
}
if $mcollective::middleware_ssl {
mcollective::common::setting { "plugin.rabbitmq.pool.${name}.ssl":
value => 1,
}
mcollective::common::setting { "plugin.rabbitmq.pool.${name}.ssl.ca":
value => $::mcollective::middleware_ssl_ca_path,
}
mcollective::common::setting { "plugin.rabbitmq.pool.${name}.ssl.fallback":
value => $fallback,
}
}
}
|