Added rabbitMQ and keystone with wim
Work in progress...
This commit is contained in:
parent
a4e62607a3
commit
5a81413b3a
5
hosts
5
hosts
@ -4,6 +4,11 @@ ansible-test
|
|||||||
ansible-test
|
ansible-test
|
||||||
[registry]
|
[registry]
|
||||||
ansible-test
|
ansible-test
|
||||||
|
[rabbitmq]
|
||||||
|
ansible-test-mq
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
16
main.yml
16
main.yml
@ -1,19 +1,7 @@
|
|||||||
---
|
---
|
||||||
# Run all plays as root.
|
# Run all plays as root.
|
||||||
- hosts: databases
|
- hosts: rabbitmq
|
||||||
become: True
|
|
||||||
roles:
|
|
||||||
- common
|
|
||||||
- mariadb
|
|
||||||
|
|
||||||
- hosts: keystone
|
|
||||||
become: True
|
|
||||||
roles:
|
|
||||||
- common
|
|
||||||
- keystone
|
|
||||||
|
|
||||||
- hosts: registry
|
|
||||||
become: True
|
become: True
|
||||||
roles:
|
roles:
|
||||||
- common
|
- common
|
||||||
- dockerregistry
|
- rabbitmq
|
||||||
|
22
roles/common/secrets/password_list.yml
Normal file
22
roles/common/secrets/password_list.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
- secrets:
|
||||||
|
ADMIN_PASS: fb5DFGHAYwMcaSLx
|
||||||
|
CEILOMETER_DBPASS: v3nabCeUsRFeuYwr
|
||||||
|
CEILOMETER_PASS: 6dqTJVKM92FYppZB
|
||||||
|
CINDER_DBPASS: oggtkqvYrvZRhIX0
|
||||||
|
CINDER_PASS: UvelZF7LDmWCiZrj
|
||||||
|
DASH_DBPASS: tOuBncSCirVOFV9i
|
||||||
|
DEMO_PASS: wq2EXzynUq0uTe23
|
||||||
|
GLANCE_DBPASS: CvnMdwW5yVjnoRKo
|
||||||
|
GLANCE_PASS: anR4RA0f1urYuw2l
|
||||||
|
HEAT_DBPASS: nyUjDRR4ZSFLDyWt
|
||||||
|
HEAT_DOMAIN_PASS: AwHABN5taTG6ayS7
|
||||||
|
HEAT_PASS: vDs7hbAl0VzXIfnh
|
||||||
|
KEYSTONE_DBPASS: e0Ycd8oldMKUlZy3
|
||||||
|
NEUTRON_DBPASS: KSVmObwR2LV0yHZZ
|
||||||
|
NEUTRON_PASS: nUSx64eOlkgBko9v
|
||||||
|
NOVA_DBPASS: 2xzrfLAnwnkslKZt
|
||||||
|
NOVA_PASS: w6d2wiBOt69JfMsg
|
||||||
|
RABBIT_PASS: Bo81kwBqTVcpjDv5
|
||||||
|
SWIFT_PASS: HhY0Zsts49gU6fCn
|
||||||
|
MARIADB_PASS: JONoHo8sYbhs
|
@ -26,3 +26,6 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
||||||
|
#- name: Load secrets file
|
||||||
|
# include_vars:
|
||||||
|
# file: secrets/password_list.yml
|
||||||
|
8
roles/keystone/files/keystone.conf
Normal file
8
roles/keystone/files/keystone.conf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
|
||||||
|
[database]
|
||||||
|
|
||||||
|
connection = mysql+pymysql://keystone:keystone@mariadb/keystone
|
||||||
|
|
||||||
|
[token]
|
||||||
|
provider = fernet
|
18
roles/rabbitmq/files/rabbitmq.service
Normal file
18
roles/rabbitmq/files/rabbitmq.service
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=rabbitmq Container
|
||||||
|
After=docker.service
|
||||||
|
Requires=docker.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
TimeoutStartSec=0
|
||||||
|
Restart=always
|
||||||
|
ExecStartPre=-/usr/bin/docker stop %n
|
||||||
|
ExecStartPre=-/usr/bin/docker rm %n
|
||||||
|
ExecStartPre=/usr/bin/docker pull rabbitmq:latest
|
||||||
|
ExecStart=/usr/bin/docker run -d \
|
||||||
|
-p 4369:4369 -p 25679:25679 -p 5671-5672:5671-5672 -p 8080:15672 \
|
||||||
|
-e "RABBITMQ_DEFAULT_USER=user" -e "RABBITMQ_DEFAULT_PASS=password" \
|
||||||
|
--hostname rabbitmq --name %n rabbitmq:3-management
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
16
roles/rabbitmq/tasks/main.yml
Normal file
16
roles/rabbitmq/tasks/main.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Install a docker based rabbitMQ.
|
||||||
|
---
|
||||||
|
- include: ../common/tasks/docker.yml
|
||||||
|
- name: install service file.
|
||||||
|
template:
|
||||||
|
src: files/rabbitmq.service
|
||||||
|
dest: /etc/systemd/system/rabbitmq.service
|
||||||
|
mode: 644
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
- name: install service file
|
||||||
|
command: systemctl daemon-reload
|
||||||
|
- name: make sure service is started
|
||||||
|
systemd:
|
||||||
|
name: rabbitmq.service
|
||||||
|
state: started
|
Loading…
Reference in New Issue
Block a user