aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/odl_cluster/tasks/odl-post.yml
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2017-07-20 11:46:14 +0800
committerJustin chi <chigang@huawei.com>2017-07-21 01:35:06 +0000
commitf12c7c6d19eb21cd99690271f4ef71794a24b683 (patch)
treecc75280865ce94d8cce3652d547e2b00abede889 /plugins/odl_cluster/tasks/odl-post.yml
parent117130a7f905696ccf66f5eef38d1c0eb951629f (diff)
Adjust the plugins directory structure
JIRA:- Since there may be multiple roles in one plugin, so add a level of roles to the directory. Move the copy operation of ODL from configure_osa to a new setup-opendaylgiht role. Add excute_order in the plugin description of ODL. Change-Id: I905fb84b11df201dc1436ec888f511e251bba89c Signed-off-by: Yifei Xue <xueyifei@huawei.com> Signed-off-by: chigang <chigang@huawei.com>
Diffstat (limited to 'plugins/odl_cluster/tasks/odl-post.yml')
-rw-r--r--plugins/odl_cluster/tasks/odl-post.yml32
1 files changed, 0 insertions, 32 deletions
diff --git a/plugins/odl_cluster/tasks/odl-post.yml b/plugins/odl_cluster/tasks/odl-post.yml
deleted file mode 100644
index 8794ff0c..00000000
--- a/plugins/odl_cluster/tasks/odl-post.yml
+++ /dev/null
@@ -1,32 +0,0 @@
----
-
-- name: restart neutron-server
- service: name=neutron-server state=restarted enabled=yes
- when: inventory_hostname in groups['neutron_server']
-
-- name: restart neutron-l3-agent server
- service: name=neutron-l3-agent state=restarted
- when:
- - odl_l3_agent == "Disable"
- - inventory_hostname in groups['neutron_openvswitch_agent']
- - inventory_hostname not in groups['nova_compute']
-
-- name: restart neutron-dhcp-agent server
- service: name=neutron-dhcp-agent state=restarted
- when:
- - inventory_hostname in groups['neutron_openvswitch_agent']
- - inventory_hostname not in groups['nova_compute']
-
-- name: restart neutron-metadata-agent server
- service: name=neutron-metadata-agent state=restarted
- when:
- - inventory_hostname in groups['neutron_openvswitch_agent']
- - inventory_hostname not in groups['nova_compute']
-
-- name: clear karaf data
- shell: rm -rf {{ odl_home }}/data/*;
- when: inventory_hostname in groups['network_hosts']
-
-- name: restart opendaylight
- shell: sleep 60; service opendaylight restart; sleep 60;
- when: inventory_hostname in groups['network_hosts']