Move database creation into role (cinder)

There is no record for why we implement the database creation outside
of the role in the playbook, when we could do it inside the role.

Implementing it inside the role allows us to reduce the quantity of
group_vars duplicated from the role, and allows us to better document
the required variables in the role. The delegation can still be done
as it is done in the playbook too.

In this patch we remove the test-vars which were duplicated from the
role, and remove the DB setup tasks as they are no longer required.

Change-Id: I11e0e9538d1fcebba55732cd20fcbf8aaf7516d1
Depends-On: https://review.openstack.org/571724
This commit is contained in:
Jesse Pretorius 2018-06-01 14:44:03 +01:00
parent 287c890584
commit 0028b3cd1e
2 changed files with 0 additions and 7 deletions

View File

@ -41,10 +41,6 @@
- "'oslomsg_rpc_all' in groups"
- "groups['oslomsg_rpc_all'] | length > 0"
- include: create-grant-db.yml
db_name: "{{ cinder_galera_database }}"
db_password: "{{ cinder_container_mysql_password }}"
roles:
- role: "os_cinder"
vars_files:

View File

@ -317,7 +317,6 @@ cinder_backends_rbd_inuse: false
cinder_ceph_client: cinder
cinder_container_mysql_password: "SuperSecrete"
cinder_developer_mode: true
cinder_galera_address: "{{ test_galera_host }}"
cinder_git_install_branch: "{{ test_branch }}"
cinder_glance_api_servers: "{{ glance_api_servers }}"
cinder_profiler_hmac_key: "secrete"
@ -341,8 +340,6 @@ cinder_rabbitmq_use_ssl: "{{ rabbitmq_use_ssl }}"
cinder_rabbitmq_password: "{{ rabbitmq_password }}"
cinder_rabbitmq_userid: cinder
cinder_rabbitmq_vhost: /cinder
cinder_galera_user: cinder
cinder_galera_database: cinder
cinder_service_password: "secrete"
cinder_venv_tag: "testing"
cinder_service_port: 8776