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:
parent
fbfe8bbc33
commit
b694f44694
@ -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]
|
||||
|
||||
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
@ -4,4 +4,3 @@
|
||||
- new_rabbitmq_user: user={{user_name}}
|
||||
vhost={{vhost_name}}
|
||||
state=absent
|
||||
node={{node_name}}
|
||||
|
@ -8,4 +8,3 @@
|
||||
read_priv=.*
|
||||
write_priv=.*
|
||||
state=present
|
||||
node={{node_name}}
|
||||
|
@ -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
|
||||
|
@ -3,4 +3,3 @@
|
||||
tasks:
|
||||
- new_rabbitmq_vhost: name={{vhost_name}}
|
||||
state=absent
|
||||
node={{node_name}}
|
||||
|
@ -2,5 +2,4 @@
|
||||
sudo: yes
|
||||
tasks:
|
||||
- new_rabbitmq_vhost: name={{vhost_name}}
|
||||
node={{node_name}}
|
||||
state=present
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user