 81e60292dc
			
		
	
	81e60292dc
	
	
	
		
			
			Default is not to /etc/puppet/ssl/puppetdb.pem Change-Id: I7b56b6cddbbf8bf0dbdcb92e048843623880dc47
		
			
				
	
	
		
			31 lines
		
	
	
		
			572 B
		
	
	
	
		
			Puppet
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			572 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/puppet/ssl/puppetdb.pem',
 | |
|   ssl_key    => '/etc/puppet/ssl/puppetdb.pem',
 | |
|   port       => '8081',
 | |
|   servername => $::fqdn,
 | |
|   proxy_pass => [
 | |
|     {
 | |
|       'path' => '/',
 | |
|       'url'  => 'http://localhost:8080/'
 | |
|     }
 | |
|   ]
 | |
| }
 |