]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
fbb-api - create test http-auth
authorThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Mon, 13 Aug 2018 15:51:11 +0000 (17:51 +0200)
committerThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Mon, 13 Aug 2018 15:51:18 +0000 (17:51 +0200)
customer/fbb-api/test.yaml
customer/fbb-api/tst-api01-fbb.pixelpark.net.yaml
customer/fbb-api/tst-api02-fbb.pixelpark.net.yaml

index 8c6c83ecdf739289e6d22005f3971f10b1f502f8..6175b370fe70a063b8d4e8e441bb748f940fcfd4 100644 (file)
@@ -72,6 +72,7 @@ php::extensions:
   redis: {}
   mysqlnd: {}
   bcmath: {}
+  posix: {}
 
 php::settings:
   PHP/memory_limit: 320M
index 818000ae708c3c3dbaaa6b152f3efd17098518cd..7c81385b679cd505fbafd5c8f34ad4194be831e7 100644 (file)
@@ -53,25 +53,25 @@ infra::profile::apache::pp_vhosts:
         allow_override:
           - All
         directoryindex: index.php index.html
-#      - location1:
-#        provider: location
-#        path: '/api/v1/cdm-ham/system-status-handler'
-#        auth_type: Basic
-#        auth_name: "Restricted Content"
-#        auth_user_file: '/var/www/.htaccess_fbb_api'
-#        require:
-#          requires:
-#            - 'user hh-push'
-#            - 'ip 10.5.13.142 10.5.13.144'
-#          enforce: all
-#      - location2:
-#        provider: location
-#        path: '/api/v1/cdm-ham/notification-handler'
-#        auth_type: Basic
-#        auth_name: "Restricted Content"
-#        auth_user_file: '/var/www/.htaccess_fbb_api'
-#        require:
-#          requires:
-#            - 'user hh-push'
-#            - 'ip 10.5.13.142 10.5.13.144'
-#          enforce: all
+      - location1:
+        provider: location
+        path: '/my-test1'
+        auth_type: Basic
+        auth_name: "Restricted Content"
+        auth_user_file: '/etc/httpd/conf.d/basic-auth-hh'
+        require:
+          requires:
+            - 'user hh-push'
+            - 'ip 10.5.13.142 10.5.13.144'
+          enforce: all
+      - location2:
+        provider: location
+        path: '/my-test2'
+        auth_type: Basic
+        auth_name: "Restricted Content"
+        auth_user_file: '/etc/httpd/conf.d/basic-auth-hh'
+        require:
+          requires:
+            - 'user hh-push'
+            - 'ip 10.5.13.142 10.5.13.144 217.66.51.248'
+          enforce: all
index 4821785862061b4bf12b55797e248e3f7b1a4bb4..9e83618623ff0d85a846fb4df56344ccde8250c1 100644 (file)
@@ -46,30 +46,25 @@ infra::profile::apache::pp_vhosts:
         allow_override:
           - All
         directoryindex: index.php index.html
-#      - location1:
-#        provider: location
-#        path: '/api/v1/cdm-ham/system-status-handler'
-#        auth_type: Digest
-#        auth_name: server
-#        auth_digest_provider: file
-#        auth_digest_algorithm: MD5
-#        auth_user_file: '/etc/httpd/htdigest'
-#        auth_type: Basic
-#        auth_name: "Restricted Content"
-#        auth_user_file: '/var/www/.htaccess_fbb_api'
-#        require:
-#          requires:
-#            - 'user hh-push'
-#            - 'ip 10.5.13.142 10.5.13.144'
-#          enforce: all
-#      - location2:
-#        provider: location
-#        path: '/api/v1/cdm-ham/notification-handler'
-#        auth_type: Basic
-#        auth_name: "Restricted Content"
-#        auth_user_file: '/var/www/.htaccess_fbb_api'
-#        require:
-#          requires:
-#            - 'user hh-push'
-#            - 'ip 10.5.13.142 10.5.13.144'
-#          enforce: all
+      - location1:
+        provider: location
+        path: '/my-test1'
+        auth_type: Basic
+        auth_name: "Restricted Content"
+        auth_user_file: '/etc/httpd/conf.d/basic-auth-hh'
+        require:
+          requires:
+            - 'user hh-push'
+            - 'ip 10.5.13.142 10.5.13.144'
+          enforce: all
+      - location2:
+        provider: location
+        path: '/my-test2'
+        auth_type: Basic
+        auth_name: "Restricted Content"
+        auth_user_file: '/etc/httpd/conf.d/basic-auth-hh'
+        require:
+          requires:
+            - 'user hh-push'
+            - 'ip 10.5.13.142 10.5.13.144 217.66.51.248'
+          enforce: all