From a7fed3be428eddf64f626c52ef35cf691c68e431 Mon Sep 17 00:00:00 2001 From: Yifei Xue Date: Mon, 19 Jun 2017 19:22:11 +0800 Subject: Upgrade ODL from boron to carbon JIRA: - Change-Id: I031444d1094af646ae39a9c0c3fbfc30548e6ee4 Signed-off-by: Yifei Xue --- plugins/odl_cluster/tasks/control-db-1.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 plugins/odl_cluster/tasks/control-db-1.yml (limited to 'plugins/odl_cluster/tasks/control-db-1.yml') diff --git a/plugins/odl_cluster/tasks/control-db-1.yml b/plugins/odl_cluster/tasks/control-db-1.yml new file mode 100644 index 00000000..3cef9792 --- /dev/null +++ b/plugins/odl_cluster/tasks/control-db-1.yml @@ -0,0 +1,8 @@ +--- + +- name: drop and recreate neutron database + shell: | + mysql -e "drop database if exists neutron;"; + mysql -e "create database neutron character set utf8;"; + mysql -e "grant all on neutron.* to 'neutron'@'%' identified by \ + '{{ neutron_container_mysql_password }}';"; -- cgit 1.2.3-korg