Merge "Move database creation into role (keystone)"

This commit is contained in:
Zuul 2018-06-09 10:31:22 +00:00 committed by Gerrit Code Review
commit 8a1b98005a
2 changed files with 6 additions and 12 deletions

View File

@ -19,6 +19,8 @@
any_errors_fatal: true any_errors_fatal: true
user: root user: root
become: true become: true
vars_files:
- test-vars.yml
tasks: tasks:
- name: Set keystone_messaging fact - name: Set keystone_messaging fact
set_fact: set_fact:
@ -44,12 +46,6 @@
- "'oslomsg_rpc_all' in groups" - "'oslomsg_rpc_all' in groups"
- "groups['oslomsg_rpc_all'] | length > 0" - "groups['oslomsg_rpc_all'] | length > 0"
- include: create-grant-db.yml
db_name: "{{ keystone_galera_database }}"
db_password: "{{ keystone_container_mysql_password }}"
vars_files:
- test-vars.yml
- name: Playbook for deploying keystone - name: Playbook for deploying keystone
hosts: keystone_all hosts: keystone_all
serial: 1 serial: 1
@ -57,6 +53,8 @@
become: true become: true
gather_facts: true gather_facts: true
any_errors_fatal: true any_errors_fatal: true
vars_files:
- test-vars.yml
pre_tasks: pre_tasks:
# In order to ensure that any container, software or # In order to ensure that any container, software or
# config file changes which causes a container/service # config file changes which causes a container/service
@ -78,8 +76,6 @@
haproxy_state: enabled haproxy_state: enabled
when: when:
- "groups['keystone_all'] | length > 1" - "groups['keystone_all'] | length > 1"
vars_files:
- test-vars.yml
- name: Playbook for finalising the keystone db migrations - name: Playbook for finalising the keystone db migrations
hosts: keystone_all[0] hosts: keystone_all[0]
@ -87,6 +83,8 @@
become: true become: true
gather_facts: false gather_facts: false
any_errors_fatal: true any_errors_fatal: true
vars_files:
- test-vars.yml
tasks: tasks:
- name: Perform a Keystone DB sync contract - name: Perform a Keystone DB sync contract
command: keystone-manage db_sync --contract command: keystone-manage db_sync --contract
@ -96,5 +94,3 @@
PATH: "/openstack/venvs/keystone-{{ keystone_venv_tag }}/bin:{{ ansible_env.PATH }}" PATH: "/openstack/venvs/keystone-{{ keystone_venv_tag }}/bin:{{ ansible_env.PATH }}"
tags: tags:
- skip_ansible_lint - skip_ansible_lint
vars_files:
- test-vars.yml

View File

@ -150,8 +150,6 @@ keystone_rabbitmq_servers: "{{ rabbitmq_servers }}"
keystone_rabbitmq_use_ssl: "{{ rabbitmq_use_ssl }}" keystone_rabbitmq_use_ssl: "{{ rabbitmq_use_ssl }}"
keystone_rabbitmq_userid: keystone keystone_rabbitmq_userid: keystone
keystone_rabbitmq_vhost: /keystone keystone_rabbitmq_vhost: /keystone
keystone_galera_database: keystone
keystone_galera_address: "{{ test_galera_host }}"
keystone_container_mysql_password: "SuperSecrete" keystone_container_mysql_password: "SuperSecrete"
keystone_venv_tag: "testing" keystone_venv_tag: "testing"
keystone_developer_mode: true keystone_developer_mode: true