]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
pixelpark-puppet - configure gitdeploy vhost
authorPhilipp Dallig <philipp.dallig@pixelpark.com>
Wed, 16 Aug 2017 15:18:58 +0000 (17:18 +0200)
committerPhilipp Dallig <philipp.dallig@pixelpark.com>
Wed, 16 Aug 2017 15:18:58 +0000 (17:18 +0200)
customer/pixelpark-puppet/puppetmaster02.pixelpark.com.yaml

index f229a8b41843430ccad88491d352d7e51becdfc5..fe802c93b59b18c93e6074e5065812d5e4ad5410 100644 (file)
@@ -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