Merge "Removed the db create tasks"

This commit is contained in:
Jenkins 2016-05-21 02:12:37 +00:00 committed by Gerrit Code Review
commit 8dabc63663
2 changed files with 5 additions and 26 deletions

View File

@ -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.

View File

@ -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