Added rabbitMQ and keystone with wim

Work in progress...
This commit is contained in:
Egon Rijpkema 2017-05-16 15:52:22 +02:00
parent a4e62607a3
commit 5a81413b3a
7 changed files with 74 additions and 14 deletions

5
hosts
View File

@ -4,6 +4,11 @@ ansible-test
ansible-test ansible-test
[registry] [registry]
ansible-test ansible-test
[rabbitmq]
ansible-test-mq

View File

@ -1,19 +1,7 @@
--- ---
# Run all plays as root. # Run all plays as root.
- hosts: databases - hosts: rabbitmq
become: True become: True
roles: roles:
- common - common
- mariadb - rabbitmq
- hosts: keystone
become: True
roles:
- common
- keystone
- hosts: registry
become: True
roles:
- common
- dockerregistry

View 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

View File

@ -26,3 +26,6 @@
owner: root owner: root
group: root group: root
#- name: Load secrets file
# include_vars:
# file: secrets/password_list.yml

View File

@ -0,0 +1,8 @@
[DEFAULT]
[database]
connection = mysql+pymysql://keystone:keystone@mariadb/keystone
[token]
provider = fernet

View 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

View 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