From a5ed9f44f55f06ada7f8efb35ce070529f55e66f Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Tue, 10 May 2016 22:12:37 -0500 Subject: [PATCH] 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 --- ...oved-db-create-tasks-4560d4b960383c4e.yaml | 5 ++++ tasks/glance_db_setup.yml | 26 ------------------- 2 files changed, 5 insertions(+), 26 deletions(-) create mode 100644 releasenotes/notes/removed-db-create-tasks-4560d4b960383c4e.yaml diff --git a/releasenotes/notes/removed-db-create-tasks-4560d4b960383c4e.yaml b/releasenotes/notes/removed-db-create-tasks-4560d4b960383c4e.yaml new file mode 100644 index 00000000..080f1e2e --- /dev/null +++ b/releasenotes/notes/removed-db-create-tasks-4560d4b960383c4e.yaml @@ -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. diff --git a/tasks/glance_db_setup.yml b/tasks/glance_db_setup.yml index 9b42df6e..5790de01 100644 --- a/tasks/glance_db_setup.yml +++ b/tasks/glance_db_setup.yml @@ -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