summaryrefslogtreecommitdiff
path: root/puppet/modules/site_webapp/manifests/common_vhost.pp
blob: c57aad574e85242c807b0fb282fea839b836ecfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class site_webapp::common_vhost {
  # installs x509 cert + key and common config
  # that both nagios + leap webapp use

  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]

  apache::vhost::file {
  'common':
    content => template('site_apache/vhosts.d/common.conf.erb')
  }
}