puppet-tempest/manifests/params.pp

100 lines
3.9 KiB
Puppet

#
class tempest::params {
include ::openstacklib::defaults
if ($::os['name'] == 'Fedora') or
($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
$pyvers = '3'
} else {
$pyvers = ''
}
case $::osfamily {
'RedHat': {
$dev_packages = [
'python-devel',
'libxslt-devel',
'libxml2-devel',
'openssl-devel',
'libffi-devel',
'patch',
'gcc'
]
$python_telemetry_tests = 'python-telemetry-tests-tempest'
$python_bgpvpn_tests = 'python-networking-bgpvpn-tests-tempest'
$python_cinder_tests = "python${pyvers}-cinder-tests-tempest"
$python_designate_tests = 'python-designate-tests-tempest'
$python_glance_tests = "python${pyvers}-glance-tests"
$python_heat_tests = 'python-heat-tests-tempest'
$python_horizon_tests = "python${pyvers}-horizon-tests-tempest"
$python_ironic_tests = 'python-ironic-tests-tempest'
$python_keystone_tests = "python${pyvers}-keystone-tests"
$python_magnum_tests = 'python-magnum-tests-tempest'
$python_mistral_tests = 'python-mistral-tests-tempest'
$python_vitrage_tests = 'python-vitrage-tests-tempest'
$python_murano_tests = 'python-murano-tests-tempest'
$python_neutron_tests = "python${pyvers}-neutron-tests-tempest"
$python_fwaas_tests = "python${pyvers}-neutron-fwaas-tests"
$python_lbaas_tests = "python${pyvers}-neutron-lbaas-tests"
$python_l2gw_tests = "python${pyvers}-networking-l2gw-tests-tempest"
$python_vpnaas_tests = "python${pyvers}-neutron-vpnaas-tests"
$python_dr_tests = 'python2-neutron-dynamic-routing-tests'
$python_nova_tests = "python${pyvers}-nova-tests"
$python_sahara_tests = 'python-sahara-tests-tempest'
$python_swift_tests = 'python-swift-tests'
$python_trove_tests = 'python-trove-tests-tempest'
$python_watcher_tests = 'python-watcher-tests-tempest'
$python_zaqar_tests = 'python-zaqar-tests-tempest'
$python_congress_tests = 'python-congress-tests-tempest'
$python_octavia_tests = 'python-octavia-tests-tempest'
$python_ec2api_tests = 'python-ec2api-tests-tempest'
$python_barbican_tests = 'python-barbican-tests-tempest'
$package_name = 'openstack-tempest'
}
'Debian': {
$dev_packages = [
'python-dev',
'libxslt1-dev',
'libxml2-dev',
'libssl-dev',
'libffi-dev',
'patch',
'gcc',
'python-virtualenv',
]
$python_aodh_tests = false
$python_bgpvpn_tests = false
$python_ceilometer_tests = false
$python_cinder_tests = false
$python_designate_tests = false
$python_glance_tests = false
$python_gnocchi_tests = false
$python_heat_tests = false
$python_horizon_tests = false
$python_ironic_tests = false
$python_keystone_tests = false
$python_l2gw_tests = false
$python_magnum_tests = false
$python_mistral_tests = false
$python_vitrage_tests = false
$python_murano_tests = false
$python_neutron_tests = false
$python_nova_tests = false
$python_sahara_tests = false
$python_swift_tests = false
$python_trove_tests = false
$python_watcher_tests = false
$python_zaqar_tests = false
$python_congress_tests = false
$python_panko_tests = false
$python_octavia_tests = false
$python_ec2api_tests = false
$python_barbican_tests = false
$package_name = 'tempest'
}
default: {
fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, \
module ${module_name} only support osfamily RedHat and Debian")
}
}
}