Add redhat package names
This commit adds the redhat package name diffs to the params.pp file.
This commit is contained in:
parent
ac44bd2f12
commit
a13de94d47
@ -66,7 +66,7 @@ class quantum (
|
||||
require => File['/etc/quantum'],
|
||||
}
|
||||
|
||||
package { 'quantum':
|
||||
package {'quantum':
|
||||
name => $::quantum::params::package_name,
|
||||
ensure => $package_ensure
|
||||
}
|
||||
|
@ -1,6 +1,33 @@
|
||||
class quantum::params {
|
||||
case $::osfamily {
|
||||
'Debian', 'Ubuntu': {
|
||||
|
||||
if($::osfamily == 'Redhat') {
|
||||
$package_name = 'openstack-quantum'
|
||||
$server_package = false
|
||||
$server_service = 'quantum-server'
|
||||
|
||||
$ovs_agent_package = 'openstack-quantum-openvswitch'
|
||||
$ovs_agent_service = 'quantum-openvswitch-agent'
|
||||
$ovs_server_package = 'openstack-quantum-openvswitch'
|
||||
|
||||
$linuxbridge_package = 'openstack-quantum-linuxbridge'
|
||||
$linuxbridge_agent_service = 'quantum-linuxbridge-agent'
|
||||
$linuxbridge_server_package = 'openstack-quantum-linuxbridge'
|
||||
|
||||
$dhcp_agent_package = 'quantum-dhcp-agent'
|
||||
$dhcp_agent_service = 'quantum-dhcp-agent'
|
||||
|
||||
$dnsmasq_packages = ['dnsmasq', 'dnsmasq-utils']
|
||||
|
||||
$l3_agent_package = 'quantum-l3-agent'
|
||||
$l3_agent_service = 'quantum-l3-agent'
|
||||
$metadata_service = 'quantum-metadata-agent'
|
||||
|
||||
$cliff_package = 'python-cliff'
|
||||
|
||||
$kernel_headers = "linux-headers-${::kernelrelease}"
|
||||
|
||||
} elsif($::osfamily == 'Debian') {
|
||||
|
||||
$package_name = 'quantum-common'
|
||||
$server_package = 'quantum-server'
|
||||
$server_service = 'quantum-server'
|
||||
@ -21,6 +48,11 @@ class quantum::params {
|
||||
|
||||
$cliff_package = 'python-cliff'
|
||||
$kernel_headers = "linux-headers-${::kernelrelease}"
|
||||
|
||||
} else {
|
||||
|
||||
fail("Unsupported osfamily ${$::osfamily}")
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -13,8 +13,6 @@ class quantum::server (
|
||||
|
||||
require 'keystone::python'
|
||||
|
||||
Package['quantum-server'] -> Quantum_api_config<||>
|
||||
Package['quantum-server'] -> Quantum_config<||>
|
||||
Quantum_config<||> ~> Service['quantum-server']
|
||||
Quantum_api_config<||> ~> Service['quantum-server']
|
||||
|
||||
@ -36,9 +34,13 @@ class quantum::server (
|
||||
$service_ensure = 'stopped'
|
||||
}
|
||||
|
||||
package {'quantum-server':
|
||||
name => $::quantum::params::server_package,
|
||||
ensure => $package_ensure
|
||||
if($::quantum::params::server_package) {
|
||||
Package['quantum-server'] -> Quantum_api_config<||>
|
||||
Package['quantum-server'] -> Quantum_config<||>
|
||||
package {'quantum-server':
|
||||
name => $::quantum::params::server_package,
|
||||
ensure => $package_ensure
|
||||
}
|
||||
}
|
||||
|
||||
service {'quantum-server':
|
||||
|
Loading…
x
Reference in New Issue
Block a user