Takashi Kajinami 4db94d41bd Avoid hard-coding OS user in each manifests
... but define it ::params as is done for group.

Change-Id: If343a8d89c7675a969e0a16ad9903cd4051ce750
2023-03-30 14:48:18 +09:00

24 lines
485 B
Puppet

# Parameters for puppet-{{cookiecutter.project_name}}
#
class {{cookiecutter.project_name}}::params {
assert_private()
include {{cookiecutter.project_name}}::deps
include openstacklib::defaults
$user = '{{cookiecutter.project_name}}'
$group = '{{cookiecutter.project_name}}'
case $facts['os']['family'] {
'RedHat': {
}
'Debian': {
}
default: {
fail("Unsupported osfamily: ${facts['os']['family']}")
}
} # Case $facts['os']['family']
}