summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorchenshuai@huawei.com <chenshuai@huawei.com>2016-02-04 18:21:00 +0800
committerchenshuai@huawei.com <chenshuai@huawei.com>2016-02-04 18:38:47 +0800
commitf02cdae52268727d9498d1bc4afde76631dd47e8 (patch)
tree6fe8f8c35e291e9375df1d4ddb3352e6680b5b7c /deploy
parent5e1ca824f2fecd57f1dbfa4657be71077cf50b28 (diff)
bugfix:disable accelerate mode in ansible for odl
JIRA: COMPASS-306 Change-Id: I9fd730b2a996484138a56513e0e763195fe3ee11 Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
Diffstat (limited to 'deploy')
-rw-r--r--deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml52
-rwxr-xr-xdeploy/adapters/ansible/roles/odl_cluster_post/tasks/main.yml4
2 files changed, 32 insertions, 24 deletions
diff --git a/deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml b/deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml
index 5c61c310..cf43b1cc 100644
--- a/deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml
+++ b/deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml
@@ -92,30 +92,6 @@
roles:
- secgroup
-- hosts: all
- remote_user: root
- accelerate: true
- roles:
- - odl_cluster
-
-- hosts: all
- remote_user: root
- accelerate: true
- roles:
- - onos_cluster
-
-- hosts: all
- remote_user: root
- sudo: True
- roles:
- - open-contrail
-
-- hosts: controller
- remote_user: root
- accelerate: true
- roles:
- - ext-network
-
- hosts: ceph_adm
remote_user: root
accelerate: true
@@ -198,3 +174,31 @@
- name: chown ssh file
shell: chown -R nova:nova /var/lib/nova/.ssh;
+
+
+- hosts: all
+ remote_user: root
+ roles:
+ - odl_cluster
+
+- hosts: all
+ remote_user: root
+ accelerate: true
+ roles:
+ - onos_cluster
+
+- hosts: all
+ remote_user: root
+ sudo: True
+ roles:
+ - open-contrail
+
+- hosts: controller
+ remote_user: root
+ roles:
+ - ext-network
+
+- hosts: all
+ remote_user: root
+ roles:
+ - odl_cluster_post
diff --git a/deploy/adapters/ansible/roles/odl_cluster_post/tasks/main.yml b/deploy/adapters/ansible/roles/odl_cluster_post/tasks/main.yml
new file mode 100755
index 00000000..83d75c39
--- /dev/null
+++ b/deploy/adapters/ansible/roles/odl_cluster_post/tasks/main.yml
@@ -0,0 +1,4 @@
+---
+- name: restart opendaylight
+ shell: sleep 60; service opendaylight restart; sleep 300;
+ when: inventory_hostname in groups['odl']