api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=osapi_compute,metadata
-force_config_drive=true
default_floating_pool={{ public_net_info.network }}
auth_strategy = keystone
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=osapi_compute,metadata
-force_config_drive=true
default_floating_pool={{ public_net_info.network }}
auth_strategy = keystone
--- /dev/null
+##############################################################################
+# 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: set file inject in nova.conf
+ shell: crudini --set /etc/nova/nova.conf DEFAULT force_config_drive true
+
+- name: restart all nova service
+ shell: for i in `cat /opt/service | grep nova` ; do service $i restart; done