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 f1a46923ec
commit 7564788f7b
7 changed files with 1 additions and 15 deletions

View File

@ -5,12 +5,8 @@ $management_port = "${resource['input']['management_port']['value']}"
$node_name = $resource['input']['node_name']['value'] $node_name = $resource['input']['node_name']['value']
class { '::rabbitmq': class { '::rabbitmq':
service_manage => false, service_manage => true,
port => $port, port => $port,
management_port => $management_port, management_port => $management_port,
delete_guest_user => true, 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}} - new_rabbitmq_user: user={{user_name}}
vhost={{vhost_name}} vhost={{vhost_name}}
state=absent state=absent
node={{node_name}}

View File

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

View File

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

View File

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

View File

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

View File

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