Files
confdroid_puppet/manifests/params.pp

47 lines
1.8 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-26 17:05:18 +01:00
# @param [string] pt_no_ssl_port non-ssl port number for puppetdb
# @param [string] pt_ssl_port ssl port for puppetdb
# @param [boolean] pt_use_ssl_only whether to use ssl only.
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-26 17:05:18 +01:00
String $pt_no_ssl_port = '8080',
String $pt_ssl_port = '8081',
Boolean $pt_use_ssl_only = true,
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 17:05:18 +01:00
$pt_server_service = 'puppetserver'
$pt_agent_service = 'puppet'
$pt_db_service = 'puppetdb'
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
}