
... because the latest lint no longer allows usage of legacy facts and top scope fact. Change-Id: If81712ed2129684d887668f6320e88a206fdad4b
24 lines
532 B
Puppet
24 lines
532 B
Puppet
# == Class: openstacklib::params
|
|
#
|
|
# These parameters need to be accessed from several locations and
|
|
# should be considered to be constant
|
|
#
|
|
class openstacklib::params {
|
|
|
|
include openstacklib::defaults
|
|
|
|
$openstackclient_package_name = 'python3-openstackclient'
|
|
|
|
case $facts['os']['family'] {
|
|
'RedHat': {
|
|
$open_iscsi_package_name = 'iscsi-initiator-utils'
|
|
}
|
|
'Debian': {
|
|
$open_iscsi_package_name = 'open-iscsi'
|
|
}
|
|
default:{
|
|
fail("Unsupported osfamily: ${facts['os']['family']}")
|
|
}
|
|
}
|
|
}
|