diff options
author | varac <varacanero@zeromail.org> | 2014-02-06 15:36:12 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2014-02-10 18:40:08 +0100 |
commit | 6255e58bf9ff3489bf2707bc2be9759ec5c7db68 (patch) | |
tree | bfa557eec681fbedcad1f699ccc2af11e9fa3738 /puppet/modules/site_apache/manifests | |
parent | d8112f6c897579cbb8bbe1230ca5d0eff6746def (diff) |
move leap_webapp.conf template to common.conf which is included by the nagios and webapp node (#5096)
Diffstat (limited to 'puppet/modules/site_apache/manifests')
-rw-r--r-- | puppet/modules/site_apache/manifests/common.pp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/puppet/modules/site_apache/manifests/common.pp b/puppet/modules/site_apache/manifests/common.pp new file mode 100644 index 00000000..72f24838 --- /dev/null +++ b/puppet/modules/site_apache/manifests/common.pp @@ -0,0 +1,26 @@ +class site_apache::common { + # installs x509 cert + key and common config + # that both nagios + leap webapp use + + $web_domain = hiera('domain') + $domain_name = $web_domain['name'] + + include x509::variables + include site_config::x509::commercial::cert + include site_config::x509::commercial::key + include site_config::x509::commercial::ca + + Class['Site_config::X509::Commercial::Key'] ~> Service[apache] + Class['Site_config::X509::Commercial::Cert'] ~> Service[apache] + Class['Site_config::X509::Commercial::Ca'] ~> Service[apache] + + include site_apache::module::rewrite + + class { '::apache': no_default_site => true, ssl => true } + + apache::vhost::file { + 'common': + content => template('site_apache/vhosts.d/common.conf.erb') + } + +} |