Merge "make quantum plugin configurable on SUSE"

This commit is contained in:
Jenkins
2013-09-06 18:47:53 +00:00
committed by Gerrit Code Review
6 changed files with 69 additions and 0 deletions

View File

@@ -70,3 +70,17 @@ if node["openstack"]["network"]["quantum_ha_cmd_cron"]
command "sleep #{sleep_time} ; . /root/openrc && #{node["openstack"]["network"]["quantum_ha_cmd"]} --replicate-dhcp > /dev/null 2>&1"
end
end
# the default SUSE initfile uses this sysconfig file to determine the
# quantum plugin to use
template "/etc/sysconfig/quantum" do
only_if { platform? "suse" }
source "quantum.sysconfig.erb"
owner "root"
group "root"
mode 00644
variables(
:plugin_conf => node["openstack"]["network"]["plugin_conf_map"][driver_name]
)
notifies :restart, "service[quantum-server]"
end