puppet-octavia/manifests/params.pp
Tobias Urdin efb5884150 Inherit pyvers from openstacklib::defaults
Change-Id: I2661617530ea627ad02fed24953852b295ecbb7a
2019-01-17 21:45:31 +01:00

39 lines
1.5 KiB
Puppet

# Parameters for puppet-octavia
#
class octavia::params {
include ::openstacklib::defaults
$pyvers = $::openstacklib::defaults::pyvers
$api_service_name = 'octavia-api'
$worker_service_name = 'octavia-worker'
$health_manager_service_name = 'octavia-health-manager'
$housekeeping_service_name = 'octavia-housekeeping'
$client_package_name = "python${pyvers}-octaviaclient"
$group = 'octavia'
case $::osfamily {
'RedHat': {
$common_package_name = 'openstack-octavia-common'
$api_package_name = 'openstack-octavia-api'
$worker_package_name = 'openstack-octavia-worker'
$health_manager_package_name = 'openstack-octavia-health-manager'
$housekeeping_package_name = 'openstack-octavia-housekeeping'
$octavia_wsgi_script_path = '/var/www/cgi-bin/octavia'
$octavia_wsgi_script_source = '/usr/bin/octavia-wsgi'
}
'Debian': {
$common_package_name = 'octavia-common'
$api_package_name = 'octavia-api'
$worker_package_name = 'octavia-worker'
$health_manager_package_name = 'octavia-health-manager'
$housekeeping_package_name = 'octavia-housekeeping'
$octavia_wsgi_script_path = '/usr/lib/cgi-bin/octavia'
$octavia_wsgi_script_source = '/usr/bin/octavia-wsgi'
}
default: {
fail("Unsupported osfamily: ${::osfamily} operatingsystem")
}
} # Case $::osfamily
}