Mercurial > repos > other > Puppet
diff manifests/templates.pp @ 396:e93588ec1ce3
Use "param" variables for settings instead of conditions
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 18 Apr 2022 10:38:28 +0100 |
parents | a948419a23b1 |
children | 2c6065b5be5e |
line wrap: on
line diff
--- a/manifests/templates.pp Mon Apr 18 10:37:00 2022 +0100 +++ b/manifests/templates.pp Mon Apr 18 10:38:28 2022 +0100 @@ -100,7 +100,10 @@ include basenode include privat include dnsresolver - include ::ssh + include ::privat::params + class { '::ssh': + sshd_config_port => $::privat::params::ssh_port[$::fqdn] + } include vcs::server include vcs::client class { 'webserver': @@ -748,15 +751,10 @@ ssl_ca_chain => '', custom_fragment => template("privat/apache/webmail.fragment"), } - if $osfamily == 'RedHat' { - $pim_user = 'apache' - } - elsif $osfamily == 'Debian' { - $pim_user = 'www-data' - } + include ::apache::params website::https { 'pim.ibboard.co.uk': proxy_4to6_ip => $proxy_4to6_ip_pim, - docroot_owner => $pim_user, + docroot_owner => $apache::params::user, docroot_group => 'editors', force_no_index => false, lockdown_requests => false,