Files
confdroid_puppet/manifests/params.pp

38 lines
1.5 KiB
ObjectPascal
Raw Normal View History

2025-02-25 17:06:07 +01:00
## puppet_cd::params.pp
# Module name: puppet_cd
# Author: Arne Teuke (arne_teuke@confdroid)
# @summary Class manages parameters for the puppet_cd module.
2025-02-26 15:37:07 +01:00
# @param [boolean] pt_manage_fw whether to manage firewall settings
# @param [string] pt_pm_fqdn the fqdn for the puppetmaster and master
# settings are applied. any other fqdn # will be considered a puppet agent.
2025-02-26 15:44:06 +01:00
# @param [string] pt_db_fqdn the fqdn for the puppetdb host.
2025-02-26 15:37:07 +01:00
# @param [string] pt_package_url the url for fetching the repo rpm
# @param [string] pt_pkg_ensure valid: "present", "latest", "v1.2.3"
# @param [string] pt_agent_pkg the packages for agents to install
# @param [string] pt_server_pkg the server packages to install
# @param [array] pt_db_pkg the packages for puppetdb
2025-02-25 17:06:07 +01:00
###############################################################################
class puppet_cd::params (
2025-02-26 15:37:07 +01:00
Boolean $pt_manage_fw = true,
2025-02-26 15:44:57 +01:00
String $pt_pm_fqdn = 'puppetmaster.example.net',
String $pt_db_fqdn = 'puppetdb.example.net',
2025-02-25 18:09:01 +01:00
2025-02-26 14:16:33 +01:00
# installation
2025-02-26 15:37:07 +01:00
String $pt_package_url = 'https://yum.puppet.com/puppet8-release-el-9.noarch.rpm',
String $pt_pkg_ensure = 'present',
String $pt_agent_pkg = 'puppet-agent',
String $pt_server_pkg = 'puppetserver',
Array $pt_db_pkg = ['puppetdb','puppetdb-termini'],
2025-02-26 14:16:33 +01:00
2025-02-25 17:06:07 +01:00
) {
2025-02-26 15:37:07 +01:00
$fqdn = $facts['networking']['fqdn']
2025-02-26 01:22:41 +01:00
# service
2025-02-26 15:37:07 +01:00
$pt_service = 'puppetserver'
2025-02-26 00:52:30 +01:00
2025-02-25 23:32:54 +01:00
#
2025-02-25 18:16:08 +01:00
# includes must be last
2025-02-25 18:09:01 +01:00
include puppet_cd::main::config
2025-02-25 17:06:07 +01:00
}