puppet-octavia/manifests/params.pp
Takashi Kajinami d02d2dd124 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: I3f17eb12408f4b88bf72f4de31cdf8f8fa008c2a
2023-03-02 12:52:45 +09:00

43 lines
1.7 KiB
Puppet

# Parameters for puppet-octavia
#
class octavia::params {
include openstacklib::defaults
$api_service_name = 'octavia-api'
$worker_service_name = 'octavia-worker'
$health_manager_service_name = 'octavia-health-manager'
$housekeeping_service_name = 'octavia-housekeeping'
$driver_agent_service_name = 'octavia-driver-agent'
$client_package_name = 'python3-octaviaclient'
$ovn_provider_package_name = 'python3-ovn-octavia-provider'
$user = 'octavia'
$group = 'octavia'
case $facts['os']['family'] {
'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'
$driver_agent_package_name = 'openstack-octavia-driver-agent'
$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'
$driver_agent_package_name = 'octavia-driver-agent'
$octavia_wsgi_script_path = '/usr/lib/cgi-bin/octavia'
$octavia_wsgi_script_source = '/usr/bin/octavia-wsgi'
}
default: {
fail("Unsupported osfamily: ${facts['os']['family']}")
}
} # Case $facts['os']['family']
}