add suse as supported and fix users and package names
Change-Id: I2cc7e96f2fd8e252bccb83505ccd701698d203fb
This commit is contained in:
@@ -37,8 +37,14 @@ default["openstack-compute"]["service_role"] = "admin"
|
||||
# that is in the paste INI files.
|
||||
default["openstack-compute"]["pki"]["signing_dir"] = "/tmp/nova-signing-dir"
|
||||
|
||||
default["openstack-compute"]["user"] = "nova"
|
||||
default["openstack-compute"]["group"] = "nova"
|
||||
case platform
|
||||
when "fedora", "redhat", "centos", "ubuntu"
|
||||
default["openstack-compute"]["user"] = "nova"
|
||||
default["openstack-compute"]["group"] = "nova"
|
||||
when "suse"
|
||||
default["openstack-compute"]["user"] = "openstack-nova"
|
||||
default["openstack-compute"]["group"] = "openstack-nova"
|
||||
end
|
||||
|
||||
# Logging stuff
|
||||
default["openstack-compute"]["syslog"]["use"] = false
|
||||
@@ -179,7 +185,7 @@ default["openstack-compute"]["api"]["auth"]["cache_dir"] = "/var/cache/nova/api"
|
||||
default["openstack-compute"]["ceilometer-api"]["auth"]["cache_dir"] = "/var/cache/nova/ceilometer-api"
|
||||
|
||||
case platform
|
||||
when "fedora", "redhat", "centos" # :pragma-foodcritic: ~FC024 - won't fix this
|
||||
when "fedora", "redhat", "centos", "suse" # :pragma-foodcritic: ~FC024 - won't fix this
|
||||
default["openstack-compute"]["platform"] = {
|
||||
"api_ec2_packages" => ["openstack-nova-api"],
|
||||
"api_ec2_service" => "openstack-nova-api",
|
||||
@@ -210,6 +216,10 @@ when "fedora", "redhat", "centos" # :pragma-foodcritic: ~FC024 - won't fix this
|
||||
"iscsi_helper" => "ietadm",
|
||||
"package_overrides" => ""
|
||||
}
|
||||
if platform == "suse"
|
||||
default["openstack-compute"]["platform"]["common_packages"] = ["openstack-nova"]
|
||||
end
|
||||
|
||||
when "ubuntu"
|
||||
default["openstack-compute"]["platform"] = {
|
||||
"api_ec2_packages" => ["nova-api-ec2"],
|
||||
|
||||
@@ -20,7 +20,7 @@ recipe "openstack-compute::nova-setup", "Sets up the nova database on the mysql
|
||||
recipe "openstack-compute::scheduler", "Installs nova scheduler service"
|
||||
recipe "openstack-compute::vncproxy", "Installs and configures the vncproxy service for console access to VMs"
|
||||
|
||||
%w{ ubuntu fedora redhat centos }.each do |os|
|
||||
%w{ ubuntu fedora redhat centos suse }.each do |os|
|
||||
supports os
|
||||
end
|
||||
|
||||
|
||||
@@ -76,6 +76,7 @@ template "/etc/libvirt/libvirtd.conf" do
|
||||
)
|
||||
|
||||
notifies :restart, "service[libvirt-bin]", :immediately
|
||||
not_if { platform? "suse" }
|
||||
end
|
||||
|
||||
template "/etc/default/libvirt-bin" do
|
||||
|
||||
Reference in New Issue
Block a user