Signed-off-by: Stephen Gran <steve@lobefin.net>
#
class roles::dbmaster {
- include roles::pubsub::params
+ include roles::pubsub::parameters
- $rabbit_password = $roles::pubsub::params::rabbit_password
+ $rabbit_password = $roles::pubsub::parameters::rabbit_password
ssl::service { 'db.debian.org':
notify => Service['apache2'],
#
class roles::pubsub::client {
- include roles::pubsub::params
+ include roles::pubsub::parameters
- $rabbit_password = $roles::pubsub::params::rabbit_password
+ $rabbit_password = $roles::pubsub::parameters::rabbit_password
package { 'python-dsa-mq':
ensure => latest,
--- /dev/null
+# = Class: roles::pubsub::parameters
+#
+# Params for pubsub client
+#
+# == Sample Usage:
+#
+# include roles::pubsub::parameters
+#
+class roles::pubsub::parameters {
+
+ $rabbit_password = hkdf('/etc/puppet/secret', "mq-client-${::fqdn}")
+}