
... because the latest lint no longer allows usage of legacy facts and top scope fact. Change-Id: If81712ed2129684d887668f6320e88a206fdad4b
20 lines
388 B
Puppet
20 lines
388 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 = '3.9'
|
|
}
|
|
'Debian': {
|
|
$pyver3 = '3'
|
|
}
|
|
default:{
|
|
fail("Unsupported osfamily: ${facts['os']['family']}")
|
|
}
|
|
}
|
|
}
|