]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
BMAS-Typo3 - wartungsseite
authorOliver Böttcher <oliver.boettcher@pixelpark.com>
Wed, 15 Nov 2017 10:25:16 +0000 (11:25 +0100)
committerOliver Böttcher <oliver.boettcher@pixelpark.com>
Wed, 15 Nov 2017 10:25:16 +0000 (11:25 +0100)
customer/bmas-typo3/production.yaml

index 678c7534f3e73a81bb17e5f8b2cad51a57517816..b0dca95d47a6c2eb690a120bfd6a299533f8da5f 100644 (file)
@@ -172,6 +172,12 @@ infra::profile::typo3::projects:
       - futurale.de
       - www.futurale.de
     rewrites:
+      - alias:
+        comment: 'Maintenance'
+        rewrite_cond:
+          - '%%{ich-trickse}{REQUEST_URI} !=/wartung/index.html'
+        rewrite_rule:
+          - '^.*$ - [R=503,L]'
       - alias:
         comment: 'Filmfestival Presse'
         rewrite_cond:
@@ -216,29 +222,35 @@ infra::profile::typo3::projects:
           - '%%{ich-trickse}{HTTP_HOST} ^(www\.)?arbeitenviernull\.de$'
         rewrite_rule:
           - '^/mitmachen/foerderprogramm.html$ http://www.unternehmens-wert-mensch.de/das-programm/unsere-erstberatungsstellen [R=301,L]'
-
+    aliases:
+      - { alias: /wartung , path: /var/www/wartung }
+    error_documents:
+      - { error_code: 503 , document: "/wartung/index.html" }
     cert_servername: 'www.arbeitenviernull.de'
     cert_customer: 'bmas'
     ssl_cert: '/etc/pki/tls/certs/www.arbeitenviernull.de-cert.pem'
     ssl_key: '/etc/pki/tls/private/www.arbeitenviernull.de-key.pem'
     ssl_chain: '/etc/pki/tls/certs/www.arbeitenviernull.de-cert.pem'
     directories:
+      - error_docs:
+        provider: directory
+        path: '/var/www/wartung'
       # protect typo3 location
-      - provider: location
-        path: '/typo3/'
-        auth_type: Digest
-        auth_name: arbeit
-        auth_digest_provider: file
-        auth_digest_algorithm: MD5
-        auth_user_file: '/etc/httpd/htdigest'
-        auth_require: 'valid-user'
-        require:
-          - local
+      #- provider: location
+      #  path: '/typo3/'
+      #  auth_type: Digest
+      #  auth_name: arbeit
+      #  auth_digest_provider: file
+      #  auth_digest_algorithm: MD5
+      #  auth_user_file: '/etc/httpd/htdigest'
+      #  auth_require: 'valid-user'
+      #  require:
+      #    - local
       # make some other locations available
-      - provider: location
-        path: '/typo3/js'
-      - provider: location
-        path: '/typo3/sysext/rsaauth/resources/'
+      #- provider: location
+      #  path: '/typo3/js'
+      #- provider: location
+      #  path: '/typo3/sysext/rsaauth/resources/'
     user: apache
     mode: '2775'
     php_admin_value:
@@ -256,6 +268,12 @@ infra::profile::typo3::projects:
       - www-unternehmens-wert-mensch-de.pixelpark.net
       - unternehmens-wert-mensch.de
     rewrites:
+      - alias:
+        comment: 'Maintenance'
+        rewrite_cond:
+          - '%%{ich-trickse}{REQUEST_URI} !=/wartung/index.html'
+        rewrite_rule:
+          - '^.*$ - [R=503,L]'
       - alias:
         comment: 'Alle Aliase auf Servername'
         rewrite_cond:
@@ -268,19 +286,27 @@ infra::profile::typo3::projects:
     ssl_key: '/etc/pki/tls/private/www.unternehmens-wert-mensch.de-key.pem'
     ssl_chain: '/etc/pki/tls/certs/www.unternehmens-wert-mensch.de-cert.pem'
     directories:
-      - provider: location
-        path: '/typo3/'
-        auth_type: Digest
-        auth_name: mensch
-        auth_digest_provider: file
-        auth_digest_algorithm: MD5
-        auth_user_file: '/etc/httpd/htdigest'
-        auth_require: 'valid-user'
-      - location2:
-        provider: location
-        path: '/typo3/sysext'
+    directories:
+      - error_docs:
+        provider: directory
+        path: '/var/www/wartung'
+      #- provider: location
+      #  path: '/typo3/'
+      #  auth_type: Digest
+      #  auth_name: mensch
+      #  auth_digest_provider: file
+      #  auth_digest_algorithm: MD5
+      #  auth_user_file: '/etc/httpd/htdigest'
+      #  auth_require: 'valid-user'
+      #- location2:
+      #  provider: location
+      #  path: '/typo3/sysext'
     user: apache
     mode: '2775'
+    aliases:
+      - { alias: /wartung , path: /var/www/wartung }
+    error_documents:
+      - { error_code: 503 , document: "/wartung/index.html" }
   inqacheck:
     version: '6.2.31'
     site_path: '/srv/www/inqa-check'
@@ -304,19 +330,28 @@ infra::profile::typo3::projects:
     ssl_key: '/etc/pki/tls/private/wildcard.inqa-check.de-key.pem'
     ssl_chain: '/etc/pki/tls/certs/wildcard.inqa-check.de-cert.pem'
     directories:
-      - provider: location
-        path: '/typo3/'
-        auth_type: Digest
-        auth_name: inqacheck
-        auth_digest_provider: file
-        auth_digest_algorithm: MD5
-        auth_user_file: '/etc/httpd/htdigest'
-        auth_require: 'valid-user'
+      - error_docs:
+        provider: directory
+        path: '/var/www/wartung'
+      #- provider: location
+      #  path: '/typo3/'
+      #  auth_type: Digest
+      #  auth_name: inqacheck
+      #  auth_digest_provider: file
+      #  auth_digest_algorithm: MD5
+      #  auth_user_file: '/etc/httpd/htdigest'
+      #  auth_require: 'valid-user'
     user: apache
     mode: '2775'
     php_admin_value:
       memory_limit: 256M
     rewrites:
+      - alias:
+        comment: 'Maintenance'
+        rewrite_cond:
+          - '%%{ich-trickse}{REQUEST_URI} !=/wartung/index.html'
+        rewrite_rule:
+          - '^.*$ - [R=503,L]'
       - wrong_alias:
         comment: 'Rewrite falsch kommunizierter Domains psyga-check'
         rewrite_cond:
@@ -337,6 +372,10 @@ infra::profile::typo3::projects:
           - '%%{ich-trickse}{HTTPS} !=on'
         rewrite_rule:
           - '(.*) https://%%{ich-trickse}{HTTP_HOST}%%{ich-trickse}{REQUEST_URI} [R=301,L]'
+    aliases:
+      - { alias: /wartung , path: /var/www/wartung }
+    error_documents:
+      - { error_code: 503 , document: "/wartung/index.html" }
   # laeuft in der selben Docroot wie inqacheck, muss aber aufgrund von gesonderter Konfiguration in einen seperaten VHost laufen
   unternehmenscheck:
     version: '6.2.31'
@@ -356,18 +395,32 @@ infra::profile::typo3::projects:
     ssl_key: '/etc/pki/tls/private/wildcard.pixelpark.net-key.pem'
     ssl_chain: '/etc/pki/tls/certs/wildcard.pixelpark.net-cert.pem'
     directories:
-      - provider: location
-        path: '/typo3/'
-        auth_type: Digest
-        auth_name: fachkraefte
-        auth_digest_provider: file
-        auth_digest_algorithm: MD5
-        auth_user_file: '/etc/httpd/htdigest'
-        auth_require: 'valid-user'
+      - error_docs:
+        provider: directory
+        path: '/var/www/wartung'
+      #- provider: location
+      #  path: '/typo3/'
+      #  auth_type: Digest
+      #  auth_name: fachkraefte
+      #  auth_digest_provider: file
+      #  auth_digest_algorithm: MD5
+      #  auth_user_file: '/etc/httpd/htdigest'
+      #  auth_require: 'valid-user'
     user: apache
     mode: '2775'
     php_admin_value:
       memory_limit: 256M
+    rewrites:
+      - alias:
+        comment: 'Maintenance'
+        rewrite_cond:
+          - '%%{ich-trickse}{REQUEST_URI} !=/wartung/index.html'
+        rewrite_rule:
+          - '^.*$ - [R=503,L]'
+    aliases:
+      - { alias: /wartung , path: /var/www/wartung }
+    error_documents:
+      - { error_code: 503 , document: "/wartung/index.html" }
   # laeuft in der selben Docroot wie inqacheck, muss aber aufgrund von gesonderter Konfiguration in einen seperaten VHost laufen
   beschaeftigtencheck:
     version: '6.2.31'
@@ -387,18 +440,32 @@ infra::profile::typo3::projects:
     ssl_key: '/etc/pki/tls/private/wildcard.pixelpark.net-key.pem'
     ssl_chain: '/etc/pki/tls/certs/wildcard.pixelpark.net-cert.pem'
     directories:
-      - provider: location
-        path: '/'
-        auth_type: Digest
-        auth_name: fachkraefte
-        auth_digest_provider: file
-        auth_digest_algorithm: MD5
-        auth_user_file: '/etc/httpd/htdigest'
-        auth_require: 'valid-user'
+      - error_docs:
+        provider: directory
+        path: '/var/www/wartung'
+      #- provider: location
+      #  path: '/'
+      #  auth_type: Digest
+      #  auth_name: fachkraefte
+      #  auth_digest_provider: file
+      #  auth_digest_algorithm: MD5
+      #  auth_user_file: '/etc/httpd/htdigest'
+      #  auth_require: 'valid-user'
     user: apache
     mode: '2775'
     php_admin_value:
       memory_limit: 256M
+    rewrites:
+      - alias:
+        comment: 'Maintenance'
+        rewrite_cond:
+          - '%%{ich-trickse}{REQUEST_URI} !=/wartung/index.html'
+        rewrite_rule:
+          - '^.*$ - [R=503,L]'
+    aliases:
+      - { alias: /wartung , path: /var/www/wartung }
+    error_documents:
+      - { error_code: 503 , document: "/wartung/index.html" }
   fisnetzwerk:
     version: '7.6.22'
     site_path: '/srv/www/fisnetzwerk'
@@ -417,14 +484,17 @@ infra::profile::typo3::projects:
     ssl_key: '/etc/pki/tls/private/www.fis-netzwerk.de-key.pem'
     ssl_chain: '/etc/pki/tls/certs/www.fis-netzwerk.de-cert.pem'
     directories:
-      - provider: location
-        path: '/typo3/'
-        auth_type: Digest
-        auth_name: fisnetzwerk
-        auth_digest_provider: file
-        auth_digest_algorithm: MD5
-        auth_user_file: '/etc/httpd/htdigest'
-        auth_require: 'valid-user'
+      - error_docs:
+        provider: directory
+        path: '/var/www/wartung'
+      #- provider: location
+      #  path: '/typo3/'
+      #  auth_type: Digest
+      #  auth_name: fisnetzwerk
+      #  auth_digest_provider: file
+      #  auth_digest_algorithm: MD5
+      #  auth_user_file: '/etc/httpd/htdigest'
+      #  auth_require: 'valid-user'
     user: apache
     mode: '2775'
     rewrites_no_ssl:
@@ -438,3 +508,14 @@ infra::profile::typo3::projects:
     php_admin_value:
       always_populate_raw_post_data: '-1'
       max_input_vars: 1500
+    rewrites:
+      - alias:
+        comment: 'Maintenance'
+        rewrite_cond:
+          - '%%{ich-trickse}{REQUEST_URI} !=/wartung/index.html'
+        rewrite_rule:
+          - '^.*$ - [R=503,L]'
+    aliases:
+      - { alias: /wartung , path: /var/www/wartung }
+    error_documents:
+      - { error_code: 503 , document: "/wartung/index.html" }