kolla-ansible/ansible/roles/tacker/tasks/bootstrap.yml
Eduardo Gonzalez ecc022177c Fix missing tacker-conductor service
Tacker has included a new conductor service
to manage mistral workflows for VIM monitoring.

Without conductor, Tacker cannot create VIMs.

This change reworks tacker to include tacker-conductor
service.

Depends-On: I52778e86e4f2c297ead8d4b09983e5e38ca88c70
Closes-Bug: #1710874
Change-Id: I6901e919887551bedc9dba8983ac904e8c48c9ce
2017-08-21 08:12:01 +00:00

33 lines
998 B
YAML

---
- name: Creating tacker database
kolla_toolbox:
module_name: mysql_db
module_args:
login_host: "{{ database_address }}"
login_port: "{{ database_port }}"
login_user: "{{ database_user }}"
login_password: "{{ database_password }}"
name: "{{ tacker_database_name }}"
register: database
run_once: True
delegate_to: "{{ groups['tacker-server'][0] }}"
- name: Creating tacker database user and setting permissions
kolla_toolbox:
module_name: mysql_user
module_args:
login_host: "{{ database_address }}"
login_port: "{{ database_port }}"
login_user: "{{ database_user }}"
login_password: "{{ database_password }}"
name: "{{ tacker_database_user }}"
password: "{{ tacker_database_password }}"
host: "%"
priv: "{{ tacker_database_name }}.*:ALL"
append_privs: "yes"
run_once: True
delegate_to: "{{ groups['tacker-server'][0] }}"
- include: bootstrap_service.yml
when: database.changed