summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/openstack_newton_xenial/roles/ceilometer_controller/handlers/main.yml
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2016-11-26 06:13:01 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-26 06:13:01 +0000
commit300b9658277125e1c57c054e6b0fdb24bda3987a (patch)
tree879ead113574f3614911a1e5b37bdcb73a29767c /deploy/adapters/ansible/openstack_newton_xenial/roles/ceilometer_controller/handlers/main.yml
parent51827d133c6adc0aa9a76aca998165c02ddd841e (diff)
parenta9da52f24627813dffe278e2299bc66286a00358 (diff)
Merge "Support ceilometer for Newton"
Diffstat (limited to 'deploy/adapters/ansible/openstack_newton_xenial/roles/ceilometer_controller/handlers/main.yml')
-rw-r--r--deploy/adapters/ansible/openstack_newton_xenial/roles/ceilometer_controller/handlers/main.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/openstack_newton_xenial/roles/ceilometer_controller/handlers/main.yml b/deploy/adapters/ansible/openstack_newton_xenial/roles/ceilometer_controller/handlers/main.yml
new file mode 100644
index 00000000..a3bfb85d
--- /dev/null
+++ b/deploy/adapters/ansible/openstack_newton_xenial/roles/ceilometer_controller/handlers/main.yml
@@ -0,0 +1,22 @@
+##############################################################################
+# 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 ceilometer service
+ service: name={{ item }} state=restarted enabled=yes
+ with_items: ceilometer_services
+
+- name: restart glance_cinder service
+ service: name={{ item }} state=restarted enabled=yes
+ with_items: glance_cinder_services
+
+- name: reload apache server
+ service: name=apache2 state=reloaded
+
+- name: restart apache server
+ service: name=apache2 state=restarted enabled=yes