summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/openstack_mitaka_xenial/roles/neutron-compute
diff options
context:
space:
mode:
authorchenshuai@huawei.com <chenshuai@huawei.com>2016-07-31 12:41:55 -0400
committerchenshuai@huawei.com <chenshuai@huawei.com>2016-07-31 13:54:14 -0400
commit922471630508ca190e7fd0530c7e67c8f49a6530 (patch)
tree1c2c14b83c598453b5b0454196bdf2893caa24ab /deploy/adapters/ansible/openstack_mitaka_xenial/roles/neutron-compute
parent86f1270e1a5038d02bd10cadeaa64a3802f6394a (diff)
add workround for swift
JIRA: COMPASS-450 Change-Id: I29603422e47d9dc99936ac3fd971832206b3615a Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/openstack_mitaka_xenial/roles/neutron-compute')
-rw-r--r--deploy/adapters/ansible/openstack_mitaka_xenial/roles/neutron-compute/handlers/main.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/openstack_mitaka_xenial/roles/neutron-compute/handlers/main.yml b/deploy/adapters/ansible/openstack_mitaka_xenial/roles/neutron-compute/handlers/main.yml
new file mode 100644
index 00000000..ca4e8088
--- /dev/null
+++ b/deploy/adapters/ansible/openstack_mitaka_xenial/roles/neutron-compute/handlers/main.yml
@@ -0,0 +1,15 @@
+##############################################################################
+# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+---
+- name: restart neutron compute service
+ service: name={{ item }} state=restarted enabled=yes
+ with_items: services | union(services_noarch)
+
+- name: restart nova-compute services
+ service: name=nova-compute state=restarted enabled=yes