34 lines
889 B
Puppet
34 lines
889 B
Puppet
## confdroid_postgresql::main::install.pp
|
|
# Module name: confdroid_postgresql
|
|
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
|
# @summary Class manages logic for the confdroid_postgresql module.
|
|
##############################################################################
|
|
class confdroid_postgresql::main::install (
|
|
|
|
) inherits confdroid_postgresql::params {
|
|
if $fqdn == $pl_server_fqdn {
|
|
package { $reqpackages_server:
|
|
ensure => $pkg_ensure,
|
|
}
|
|
package { $reqpackages_client:
|
|
ensure => $pkg_ensure,
|
|
}
|
|
if $pl_manage_extensions == true {
|
|
package { $reqpackages_extensions:
|
|
ensure => $pkg_ensure,
|
|
}
|
|
}
|
|
if $pl_use_pg_bouncer == true {
|
|
package { $reqpackages_bouncer:
|
|
ensure => $pkg_ensure,
|
|
}
|
|
}
|
|
}
|
|
|
|
if $fqdn != $pl_server_fqdn {
|
|
package { $reqpackages_client:
|
|
ensure => $pkg_ensure,
|
|
}
|
|
}
|
|
}
|