$cluster_cookie = $roles::pubsub::params::cluster_cookie
$admin_password = $roles::pubsub::params::admin_password
+ $ftp_password = $roles::pubsub::params::ftp_password
$cc_master = rainier
$cc_secondary = rapoport
provider => 'rabbitmqctl',
}
+ rabbitmq_user { 'ftpteam':
+ admin => true,
+ password => $ftp_password,
+ provider => 'rabbitmqctl',
+ }
+
rabbitmq_vhost { 'packages':
ensure => present,
provider => 'rabbitmqctl',
require => Rabbitmq_user['admin']
}
+ rabbitmq_user_permissions { 'ftpteam@packages':
+ configure_permission => '.*',
+ read_permission => '.*',
+ write_permission => '.*',
+ provider => 'rabbitmqctl',
+ require => [
+ Rabbitmq_user['ftpteam'],
+ Rabbitmq_vhost['packages']
+ ]
+ }
+
@ferm::rule { 'rabbitmq':
description => 'rabbitmq connections',
rule => '&SERVICE_RANGE(tcp, 5672, $HOST_DEBIAN_V4)'