From: Stephen Gran Date: Wed, 15 Jan 2014 16:54:40 +0000 (+0000) Subject: sigh, include the params class X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=f7396dcf7cf934477bd85843c7ec9dc15cdd7012;p=mirror%2Fdsa-puppet.git sigh, include the params class Signed-off-by: Stephen Gran --- diff --git a/modules/roles/manifests/dbmaster.pp b/modules/roles/manifests/dbmaster.pp index 5a962096b..111b4f143 100644 --- a/modules/roles/manifests/dbmaster.pp +++ b/modules/roles/manifests/dbmaster.pp @@ -8,9 +8,9 @@ # 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'], diff --git a/modules/roles/manifests/pubsub/client.pp b/modules/roles/manifests/pubsub/client.pp index df220ff42..e2a1083ec 100644 --- a/modules/roles/manifests/pubsub/client.pp +++ b/modules/roles/manifests/pubsub/client.pp @@ -8,9 +8,9 @@ # 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, diff --git a/modules/roles/manifests/pubsub/parameters.pp b/modules/roles/manifests/pubsub/parameters.pp new file mode 100644 index 000000000..3f89eb69b --- /dev/null +++ b/modules/roles/manifests/pubsub/parameters.pp @@ -0,0 +1,12 @@ +# = 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}") +}