
When setting up an SSL vhost, the apache::vhost resource needs both ssl_cert and ssl_key parameters. Change-Id: Idc48e6128744853219254cd41ce192cf293d9ebd
31 lines
570 B
Puppet
31 lines
570 B
Puppet
Class['hiera'] -> Class['apache']
|
|
|
|
class { 'hiera' :
|
|
datadir => '/etc/puppet/data',
|
|
hierarchy => [
|
|
'%{::type}/%{::fqdn}',
|
|
'%{::type}/common',
|
|
'common',
|
|
]
|
|
}
|
|
|
|
class {'::apache' :
|
|
purge_configs => false,
|
|
}
|
|
include 'apache::mod::wsgi'
|
|
|
|
apache::vhost { 'puppetdb' :
|
|
docroot => '/tmp',
|
|
ssl => true,
|
|
ssl_cert => '/etc/ssl/certs/puppetdb.pem',
|
|
ssl_key => '/etc/ssl/certs/puppetdb.pem',
|
|
port => '8081',
|
|
servername => $::fqdn,
|
|
proxy_pass => [
|
|
{
|
|
'path' => '/',
|
|
'url' => 'http://localhost:8080/'
|
|
}
|
|
]
|
|
}
|