Files
puppet-openstacklib/manifests/defaults.pp
Takashi Kajinami 62439012bd Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: If81712ed2129684d887668f6320e88a206fdad4b
2023-03-01 16:50:04 +09:00

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']}")
}
}
}