Removed the db create tasks
The db create tasks have been removed from the role and have been relocated into the playbooks. Change-Id: Ifa3d33f60d772997f67f8ad1ca3df0e6e2da4e1e Depends-On: If58e482034a65c0e50241448dbe298a73c1ae71b Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
3336fbefa1
commit
a5ed9f44f5
@ -0,0 +1,5 @@
|
||||
---
|
||||
upgrade:
|
||||
- The database create and user creates have been removed
|
||||
from the ``os_glance`` role. These tasks have been relocated
|
||||
to the playbooks.
|
@ -13,32 +13,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- name: Create DB for service
|
||||
mysql_db:
|
||||
login_user: "{{ galera_root_user }}"
|
||||
login_password: "{{ galera_root_password }}"
|
||||
login_host: "{{ glance_galera_address }}"
|
||||
name: "{{ glance_galera_database }}"
|
||||
state: "present"
|
||||
tags:
|
||||
- glance-db-setup
|
||||
|
||||
- name: Grant access to the DB for the service
|
||||
mysql_user:
|
||||
login_user: "{{ galera_root_user }}"
|
||||
login_password: "{{ galera_root_password }}"
|
||||
login_host: "{{ glance_galera_address }}"
|
||||
name: "{{ glance_galera_user }}"
|
||||
password: "{{ glance_container_mysql_password }}"
|
||||
host: "{{ item }}"
|
||||
state: "present"
|
||||
priv: "{{ glance_galera_database }}.*:ALL"
|
||||
with_items:
|
||||
- "localhost"
|
||||
- "%"
|
||||
tags:
|
||||
- glance-db-setup
|
||||
|
||||
- name: Perform a Glance DB sync
|
||||
command: "{{ glance_bin }}/glance-manage db_sync"
|
||||
become: yes
|
||||
|
Loading…
x
Reference in New Issue
Block a user