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'
|
when: ansible_os_family == 'Suse'
|
||||||
- name: "Start rabbitmq-server"
|
- name: "Start rabbitmq-server"
|
||||||
service: name=rabbitmq-server state=started enabled=yes
|
service: name=rabbitmq-server state=started enabled=yes
|
||||||
|
|
||||||
# NOTE(cinerama): on some systems, rabbit may not be ready when we want to
|
# NOTE(cinerama): on some systems, rabbit may not be ready when we want to
|
||||||
# make changes to users if we don't wait first
|
# 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"
|
- name: "Wait for rabbitmq"
|
||||||
wait_for: port=5672 delay=5
|
wait_for: port=5672 delay=5
|
||||||
|
|
||||||
- name: "Ensure guest user is removed from rabbitmq"
|
- name: "Ensure guest user is removed from rabbitmq"
|
||||||
rabbitmq_user:
|
rabbitmq_user:
|
||||||
user: "guest"
|
user: "guest"
|
||||||
|
@ -64,6 +64,7 @@ Below is the full data structure.
|
|||||||
username: keystone
|
username: keystone
|
||||||
password: ChangeThisPa55w0rd
|
password: ChangeThisPa55w0rd
|
||||||
host: 127.0.0.1
|
host: 127.0.0.1
|
||||||
|
port: 5672
|
||||||
database:
|
database:
|
||||||
name: keystone
|
name: keystone
|
||||||
username: keystone
|
username: keystone
|
||||||
|
@ -54,9 +54,9 @@ keystone:
|
|||||||
username: keystone
|
username: keystone
|
||||||
password: ChangeThisPa55w0rd
|
password: ChangeThisPa55w0rd
|
||||||
host: localhost
|
host: localhost
|
||||||
|
port: 5672
|
||||||
database:
|
database:
|
||||||
name: keystone
|
name: keystone
|
||||||
username: keystone
|
username: keystone
|
||||||
password: ChangeThisPa55w0rd
|
password: ChangeThisPa55w0rd
|
||||||
host: localhost
|
host: localhost
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
# NOTE(cinerama): on some systems, rabbit may not be ready when we want to
|
# NOTE(cinerama): on some systems, rabbit may not be ready when we want to
|
||||||
# make changes to users if we don't wait first
|
# make changes to users if we don't wait first
|
||||||
- name: "Wait for rabbitmq"
|
- 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"
|
- name: "Ensure guest user is removed from rabbitmq"
|
||||||
rabbitmq_user:
|
rabbitmq_user:
|
||||||
|
Loading…
Reference in New Issue
Block a user