From 0d2d806e5c860820de5555aac00d37a30d412e4c Mon Sep 17 00:00:00 2001 From: Philipp Dallig Date: Wed, 16 Aug 2017 17:18:58 +0200 Subject: [PATCH] pixelpark-puppet - configure gitdeploy vhost --- .../puppetmaster02.pixelpark.com.yaml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/customer/pixelpark-puppet/puppetmaster02.pixelpark.com.yaml b/customer/pixelpark-puppet/puppetmaster02.pixelpark.com.yaml index f229a8b4..fe802c93 100644 --- a/customer/pixelpark-puppet/puppetmaster02.pixelpark.com.yaml +++ b/customer/pixelpark-puppet/puppetmaster02.pixelpark.com.yaml @@ -2,3 +2,33 @@ infra::role: base infra::additional_classes: - infra::profile::apache +infra::profile::apache::pp_vhosts: + gitdeploy: + servername: puppetmaster.pixelpark.com + serveraliases: + - puppetmaster01.pixelpark.com + - puppetmaster02.pixelpark.com + cert_servername: 'wildcard.pixelpark.com' + cert_customer: 'pixelpark' + ssl_chain: '/etc/pki/tls/certs/wildcard.pixelpark.com-cert.pem' + ssl_key: '/etc/pki/tls/private/wildcard.pixelpark.com-key.pem' + ssl_cert: '/etc/pki/tls/certs/wildcard.pixelpark.com-cert.pem' + docroot: /var/www/cgi-bin + directories: + - directory1: + provider: directory + path: '/var/www/cgi-bin' + options: + - Indexes + - FollowSymlinks + - MultiViews + - ExecCGI + addhandlers: + handler: cgi-script + extensions: '.py' + rewrites: + - comment: 'http to https' + rewrite_cond: + - '%%{ich-trickse}{HTTPS} !=on' + rewrite_rule: + - '(.*) https://%{literal("%")}{HTTP_HOST}%{literal("%")}{REQUEST_URI} [R=301,L]' \ No newline at end of file -- 2.39.5