Fix rabbitmq startup

Rabbitmq start with the default node name. Puppet tries to change nodename.
After this start stop status stops to work
This commit is contained in:
Łukasz Oleś 2015-07-17 11:49:12 +00:00
parent fbfe8bbc33
commit b694f44694
8 changed files with 2 additions and 16 deletions

View File

@ -45,7 +45,7 @@ def deploy():
signals.connect(node1, mariadb_service1)
# RABBIT
rabbitmq_service1 = vr.create('rabbitmq1', 'resources/rabbitmq_service', {'management_port': 15672, 'port': 5672, 'node_name': 'rabbitmq_service1'})[0]
rabbitmq_service1 = vr.create('rabbitmq1', 'resources/rabbitmq_service', {'management_port': 15672, 'port': 5672})[0]
openstack_vhost = vr.create('openstack_vhost', 'resources/rabbitmq_vhost/', {'vhost_name': 'openstack'})[0]
openstack_rabbitmq_user = vr.create('openstack_rabbitmq_user', 'resources/rabbitmq_user/', {'user_name': 'openstack', 'password': 'openstack_password'})[0]

View File

@ -5,12 +5,8 @@ $management_port = "${resource['input']['management_port']['value']}"
$node_name = $resource['input']['node_name']['value']
class { '::rabbitmq':
service_manage => false,
service_manage => true,
port => $port,
management_port => $management_port,
delete_guest_user => true,
environment_variables => {
'RABBITMQ_NODENAME' => $node_name,
'RABBITMQ_SERVICENAME' => 'RabbitMQ'
}
}

View File

@ -4,4 +4,3 @@
- new_rabbitmq_user: user={{user_name}}
vhost={{vhost_name}}
state=absent
node={{node_name}}

View File

@ -8,4 +8,3 @@
read_priv=.*
write_priv=.*
state=present
node={{node_name}}

View File

@ -2,9 +2,6 @@ id: rabbitmq_user
handler: ansible
version: 1.0.0
input:
node_name:
schema: str!
value:
user_name:
schema: str!
value: openstack

View File

@ -3,4 +3,3 @@
tasks:
- new_rabbitmq_vhost: name={{vhost_name}}
state=absent
node={{node_name}}

View File

@ -2,5 +2,4 @@
sudo: yes
tasks:
- new_rabbitmq_vhost: name={{vhost_name}}
node={{node_name}}
state=present

View File

@ -2,9 +2,6 @@ id: rabbitmq_vhost
handler: ansible
version: 1.0.0
input:
node_name:
schema: str!
value:
vhost_name:
schema: str!
value: openstack