| 5 | | puppet is in the unsupported repo |
| | 5 | puppet is in the unsupported repo. |
| | 6 | |
| | 7 | The recommended configuration is using passenger with apache. nginx will also work. |
| | 8 | |
| | 9 | * Install mod_passenger |
| | 10 | * mkdir -p /etc/puppet/rack/public |
| | 11 | * copy /usr/share/puppet/ext/rack/files/config.ru /etc/puppet/rack |
| | 12 | * create puppetmaster.conf in /etc/httpd/conf.d |
| | 13 | |
| | 14 | {{{ |
| | 15 | Listen 8140 |
| | 16 | <VirtualHost *:8140> |
| | 17 | |
| | 18 | SSLEngine on |
| | 19 | SSLCipherSuite SSLv2:-LOW:-EXPORT:RC4+RSA |
| | 20 | SSLCertificateFile /var/lib/puppet/ssl/certs/puppetmaster.pem |
| | 21 | SSLCertificateKeyFile /var/lib/puppet/ssl/private_keys/puppetmaster.pem |
| | 22 | SSLCertificateChainFile /var/lib/puppet/ssl/ca/ca_crt.pem |
| | 23 | SSLCACertificateFile /var/lib/puppet/ssl/ca/ca_crt.pem |
| | 24 | # CRL checking should be enabled; if you have problems with Apache complaining about the CRL, disable the next line |
| | 25 | SSLCARevocationFile /var/lib/puppet/ssl/ca/ca_crl.pem |
| | 26 | SSLVerifyClient optional |
| | 27 | SSLVerifyDepth 1 |
| | 28 | SSLOptions +StdEnvVars |
| | 29 | |
| | 30 | # The following client headers allow the same configuration to work with Pound. |
| | 31 | RequestHeader set X-SSL-Subject %{SSL_CLIENT_S_DN}e |
| | 32 | RequestHeader set X-Client-DN %{SSL_CLIENT_S_DN}e |
| | 33 | RequestHeader set X-Client-Verify %{SSL_CLIENT_VERIFY}e |
| | 34 | |
| | 35 | RackAutoDetect On |
| | 36 | DocumentRoot /etc/puppet/rack/public/ |
| | 37 | <Directory /etc/puppet/rack> |
| | 38 | Options None |
| | 39 | AllowOverride None |
| | 40 | Order allow,deny |
| | 41 | allow from all |
| | 42 | </Directory> |
| | 43 | </VirtualHost> |
| | 44 | |
| | 45 | }}} |