summaryrefslogtreecommitdiff
path: root/puppet/modules/site_apache/manifests/common.pp
blob: 2b83ffa51f9a599a948789c9fb85df381880cd95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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')
  }

  apache::config::include{ 'ssl_common.inc': }
}