From 34ed097eedbabd0c5aa97280424200c4371129a4 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Tue, 10 May 2016 22:21:58 -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: Iafe39fa5f6b34f4bc0bba0baa2f362ab5b5292df Depends-On: If58e482034a65c0e50241448dbe298a73c1ae71b Signed-off-by: Kevin Carter --- ...oved-db-create-tasks-eed527e915f23ee0.yaml | 5 ++++ tasks/neutron_db_setup.yml | 26 ------------------- 2 files changed, 5 insertions(+), 26 deletions(-) create mode 100644 releasenotes/notes/removed-db-create-tasks-eed527e915f23ee0.yaml diff --git a/releasenotes/notes/removed-db-create-tasks-eed527e915f23ee0.yaml b/releasenotes/notes/removed-db-create-tasks-eed527e915f23ee0.yaml new file mode 100644 index 00000000..4f348129 --- /dev/null +++ b/releasenotes/notes/removed-db-create-tasks-eed527e915f23ee0.yaml @@ -0,0 +1,5 @@ +--- +upgrade: + - The database create and user creates have been removed + from the ``os_neutron`` role. These tasks have been relocated + to the playbooks. diff --git a/tasks/neutron_db_setup.yml b/tasks/neutron_db_setup.yml index c075a9e4..71816aff 100644 --- a/tasks/neutron_db_setup.yml +++ b/tasks/neutron_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: "{{ neutron_galera_address }}" - name: "{{ neutron_galera_database }}" - state: "present" - tags: - - neutron-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: "{{ neutron_galera_address }}" - name: "{{ neutron_galera_user }}" - password: "{{ neutron_container_mysql_password }}" - host: "{{ item }}" - state: "present" - priv: "{{ neutron_galera_database }}.*:ALL" - with_items: - - "localhost" - - "%" - tags: - - neutron-db-setup - - name: Get neutron migrations facts neutron_migrations_facts: release: newton