puppet-magnum/manifests/params.pp
Thomas Goirand afa9387452 Get rid of the $pyvers variable
Since everyone has switched to Python3, it's time for the removal of the
$pyvers variable.

Change-Id: I34ef3bef5bb5d97791801d07583b9682b5e729b7
2021-06-09 13:34:33 +02:00

40 lines
1.2 KiB
Puppet

# ==Class: magnum::params
#
# Parameters for puppet-magnum
#
class magnum::params {
include openstacklib::defaults
$group = 'magnum'
case $::osfamily {
'RedHat': {
# package names
$common_package = 'openstack-magnum-common'
$api_package = 'openstack-magnum-api'
$conductor_package = 'openstack-magnum-conductor'
# service names
$api_service = 'openstack-magnum-api'
$conductor_service = 'openstack-magnum-conductor'
$client_package = 'python3-magnumclient'
$wsgi_script_path = '/var/www/cgi-bin/magnum'
$wsgi_script_source = '/usr/bin/magnum-api-wsgi'
}
'Debian': {
# package names
$common_package = 'magnum-common'
$api_package = 'magnum-api'
$conductor_package = 'magnum-conductor'
# service names
$api_service = 'magnum-api'
$conductor_service = 'magnum-conductor'
$client_package = 'python3-magnumclient'
$wsgi_script_path = '/usr/lib/cgi-bin/magnum'
$wsgi_script_source = '/usr/lib/python3/dist-packages/magnum/api/app.wsgi'
}
default: {
fail("Unsupported osfamily: ${::osfamily} operatingsystem")
}
} # Case $::osfamily
}