Files
puppet-openstacklib/manifests/defaults.pp
Takashi Kajinami 7ef217f4d6 Add default python version for CentOS Stream 10
Change-Id: Ida4cc8726c17782fef4f5415ca2bb3ae7db8d998
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-09-22 13:41:46 +00:00

23 lines
480 B
Puppet

# == Class: openstacklib::defaults
#
# Default configuration for all openstack-puppet module.
#
# This file is loaded in the params.pp of each class.
#
class openstacklib::defaults {
case $facts['os']['family'] {
'RedHat': {
$pyver3 = $facts['os']['release']['major'] ? {
'10' => '3.11',
default => '3.9',
}
}
'Debian': {
$pyver3 = '3'
}
default:{
fail("Unsupported osfamily: ${facts['os']['family']}")
}
}
}