85ac496ff6
This deploys cyborg services across various hosts and sets them up as boot time services configured to access the local rabbit and mysql instances and then runs some validations to ensure that everything started correctly. This does not have any saftey for multi-controller setups yet, right now if you hand the playbook 3 hosts under 'controller' it will deploy three api endpoints and three agents. Which probably won't work right. Change-Id: I79b6b1ce9bb6766d5e608c89504c4bbaeaba5599
21 lines
567 B
YAML
21 lines
567 B
YAML
---
|
|
|
|
- name: Create Cyborg mysql user
|
|
mysql_user:
|
|
name: cyborg
|
|
password: "{{ lookup('password', 'credentials/cyborg/mysqlpassword length=15') }}" # Generates a password
|
|
priv: '*.*:ALL,GRANT' # Do we only need the cyborg database?
|
|
state: present
|
|
become: true
|
|
|
|
- name: Create Cyborg rabbitmq user
|
|
rabbitmq_user:
|
|
user: cyborg
|
|
password: "{{ lookup('password', 'credentials/cyborg/rabbitpassword length=15') }}" # Generates a password
|
|
vhost: /
|
|
read_priv: .*
|
|
write_priv: .*
|
|
configure_priv: .*
|
|
state: present
|
|
become: true
|