add lw07 to snapshot_web group
[mirror/dsa-puppet.git] / modules / roles / manifests / pubsub / client.pp
1 # = Class: roles::pubsub::client
2 #
3 # Client config files for pubsub client
4 #
5 # == Sample Usage:
6 #
7 #   include roles::pubsub::client
8 #
9 class roles::pubsub::client {
10
11         include roles::pubsub::parameters
12
13         $rabbit_password = $roles::pubsub::parameters::rabbit_password
14
15         package { [
16                 'python-dsa-mq',
17                 'python-kombu'
18         ]:
19                 ensure => installed,
20                 tag    => extra_repo,
21         }
22
23         roles::pubsub::config { 'homedirs':
24                 key      => 'dsa-homedirs',
25                 exchange => dsa,
26                 topic    => 'dsa.git.homedirs',
27                 vhost    => dsa,
28                 username => $::fqdn,
29                 password => $rabbit_password
30         }
31
32         roles::pubsub::config { 'replicate':
33                 key      => 'dsa-udreplicate',
34                 exchange => dsa,
35                 queue    => "ud-${::fqdn}",
36                 topic    => 'dsa.ud.replicate',
37                 vhost    => dsa,
38                 username => $::fqdn,
39                 password => $rabbit_password
40         }
41 }