diff --git a/doc/puppet_classes/puppet_cd_3A_3Amain_3A_3Ainstall.html b/doc/puppet_classes/puppet_cd_3A_3Amain_3A_3Ainstall.html index 899fb46..1aa4ba8 100644 --- a/doc/puppet_classes/puppet_cd_3A_3Amain_3A_3Ainstall.html +++ b/doc/puppet_classes/puppet_cd_3A_3Amain_3A_3Ainstall.html @@ -107,17 +107,45 @@ 9 10 11 -12 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26
# File 'manifests/main/install.pp', line 6
class puppet_cd::main::install (
-) inherits puppet_cd::params {
-
+) inherits puppet_cd::params {
require puppet_cd::main::yumrepo
+ package { $pt_agent_pkg:
+ ensure => $pt_pkg_ensure,
+ }
+
+ if $fqdn == $pt_pm_fqdn {
+ package { $pt_server_pkg:
+ ensure => $pt_pkg_ensure,
+ }
+ }
+
+ if $fqdn == $pt_db_fqdn {
+ package { $pt_db_pkg:
+ ensure => $pt_pkg_ensure,
+ }
+ }
}
puppet_cd::params.pp Module name: puppet_cd Author: Arne Teuke -(arne_teuke@confdroid)
+(arne_teuke@confdroid) settings are applied. any other fqdn # will be +considered a puppet agent.whether to manage firewall settings
+the fqdn for the puppetmaster and master
+the fqdn for the puppetdb host.
+the url for fetching the repo rpm
+valid: “present”, “latest”, “v1.2.3”
+the packages for agents to install
+the server packages to install
+the packages for puppetdb
+-6 -7 -8 -9 -10 -11 -12 -13 -14 15 16 17 @@ -194,32 +278,43 @@ 24 25 26 -27+27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37
# File 'manifests/params.pp', line 6
+ # File 'manifests/params.pp', line 15
class puppet_cd::params (
- $pt_manage_fw = true,
- $pt_puppetmaster = undef,
+ Boolean $pt_manage_fw = true,
+ String $pt_pm_fqdn = undef,
+ String $pt_db_fqdn = undef,
# installation
- $pt_package_url = 'https://yum.puppet.com/puppet8-release-el-9.noarch.rpm',
- $pt_pkg_ensure = 'present',
-
+ 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'],
) {
-
-$fqdn = $facts['networking']['fqdn']
+ $fqdn = $facts['networking']['fqdn']
# service
-$pt_service = 'puppetserver'
+ $pt_service = 'puppetserver'
#
# includes must be last
include puppet_cd::main::config
-
}