Correct rabbitmq port usage
Several messages where we had a hard coded wait for a hard coded port, for rabbitmq, were present. Replaced all but one of the instances with variable usage, the remainder I added a TODO as more refactoring of that file is required and it should be done at the same time. Change-Id: I5019424c79763254854fdaace3da2753a05cd94f
This commit is contained in:
parent
cc46b9280c
commit
12ef3cbbad
@ -54,10 +54,14 @@
|
||||
when: ansible_os_family == 'Suse'
|
||||
- name: "Start rabbitmq-server"
|
||||
service: name=rabbitmq-server state=started enabled=yes
|
||||
|
||||
# NOTE(cinerama): on some systems, rabbit may not be ready when we want to
|
||||
# make changes to users if we don't wait first
|
||||
# TODO(TheJulia): This needs to be changed to a variable, however
|
||||
# should update this playbook all at once with new variable structures.
|
||||
- name: "Wait for rabbitmq"
|
||||
wait_for: port=5672 delay=5
|
||||
|
||||
- name: "Ensure guest user is removed from rabbitmq"
|
||||
rabbitmq_user:
|
||||
user: "guest"
|
||||
|
@ -64,6 +64,7 @@ Below is the full data structure.
|
||||
username: keystone
|
||||
password: ChangeThisPa55w0rd
|
||||
host: 127.0.0.1
|
||||
port: 5672
|
||||
database:
|
||||
name: keystone
|
||||
username: keystone
|
||||
|
@ -54,9 +54,9 @@ keystone:
|
||||
username: keystone
|
||||
password: ChangeThisPa55w0rd
|
||||
host: localhost
|
||||
port: 5672
|
||||
database:
|
||||
name: keystone
|
||||
username: keystone
|
||||
password: ChangeThisPa55w0rd
|
||||
host: localhost
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
||||
# NOTE(cinerama): on some systems, rabbit may not be ready when we want to
|
||||
# make changes to users if we don't wait first
|
||||
- name: "Wait for rabbitmq"
|
||||
wait_for: port=5672 delay=5
|
||||
wait_for: port="{{ keystone.message_queue.port | default('5672') }}" delay=5
|
||||
|
||||
- name: "Ensure guest user is removed from rabbitmq"
|
||||
rabbitmq_user:
|
||||
|
Loading…
Reference in New Issue
Block a user