26 lines
671 B
Puppet
26 lines
671 B
Puppet
## confdroid_puppet::main::install.pp
|
|
# Module name: confdroid_puppet
|
|
# Author: Arne Teuke (arne_teuke@confdroid)
|
|
# @summary Class manages package installation for the confdroid_puppet module.
|
|
###############################################################################
|
|
class confdroid_puppet::main::install (
|
|
|
|
) inherits confdroid_puppet::params {
|
|
if $fqdn != $pt_pm_fqdn {
|
|
package { $pt_agent_pkg:
|
|
ensure => $pt_pkg_ensure,
|
|
}
|
|
}
|
|
|
|
if $fqdn == $pt_pm_fqdn {
|
|
package { $pt_server_pkg:
|
|
ensure => $pt_pkg_ensure,
|
|
}
|
|
if $pt_use_puppetdb == true {
|
|
package { $pt_puppetdb_pkg:
|
|
ensure => $pt_pkg_ensure,
|
|
}
|
|
}
|
|
}
|
|
}
|