puppet-oslo/manifests/params.pp
Takashi Kajinami 548d68cf35 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Ib0bdb6329a438ac44886ee0494d0c52ad344a1bf
2023-03-02 12:37:35 +09:00

35 lines
1.1 KiB
Puppet

# ==Class: oslo::params
#
# Parameters for puppet-oslo
#
class oslo::params {
include openstacklib::defaults
$pylibmc_package_name = 'python3-pylibmc'
case $facts['os']['family'] {
'RedHat': {
$sqlite_package_name = undef
$pymysql_package_name = undef
$python_memcache_package_name = 'python3-memcached'
$python_redis_package_name = 'python3-redis'
$python_etcd3gw_package_name = 'python3-etcd3gw'
$python_etcd3_package_name = undef
$python_pymemcache_package_name = 'python3-pymemcache'
}
'Debian': {
$sqlite_package_name = 'python3-pysqlite2'
$pymysql_package_name = 'python3-pymysql'
$python_memcache_package_name = 'python3-memcache'
$python_redis_package_name = 'python3-redis'
$python_etcd3gw_package_name = 'python3-etcd3gw'
$python_etcd3_package_name = 'python3-etcd3'
$python_pymemcache_package_name = 'python3-pymemcache'
}
default: {
fail("Unsupported osfamily: ${facts['os']['family']}")
}
} # Case $facts['os']['family']
}