puppet-panko/manifests/params.pp
yatin 5231efb25c Install python3-pankoclient for Fedora And RedHat > 7
Fedora repo [1] has python3 packages, start consuming those.

[1] http://trunk.rdoproject.org/fedora/puppet-passed-ci/

Change-Id: Ib21eea52c43b4ff8f899571778bbb4a60b092c87
2018-12-12 09:45:58 +05:30

38 lines
1.1 KiB
Puppet

# Parameters for puppet-panko
#
class panko::params {
include ::openstacklib::defaults
if ($::os_package_type == 'debian') or ($::os['name'] == 'Fedora') or
($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
$pyvers = '3'
} else {
$pyvers = ''
}
$client_package_name = "python${pyvers}-pankoclient"
$group = 'panko'
$expirer_command = 'panko-expirer'
case $::osfamily {
'RedHat': {
$common_package_name = 'openstack-panko-common'
$api_package_name = 'openstack-panko-api'
$api_service_name = 'openstack-panko-api'
$panko_wsgi_script_path = '/var/www/cgi-bin/panko'
$panko_wsgi_script_source = '/usr/bin/panko-api'
}
'Debian': {
$common_package_name = 'panko-common'
$api_package_name = 'panko-api'
$api_service_name = 'panko-api'
$panko_wsgi_script_path = '/usr/lib/cgi-bin/panko'
$panko_wsgi_script_source = '/usr/bin/panko-api'
}
default: {
fail("Unsupported osfamily: ${::osfamily} operatingsystem")
}
} # Case $::osfamily
}