]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
dev-ws-fbb init
authorsambufe <samuel.bufe@publicispixelpark.de>
Wed, 17 May 2017 11:52:48 +0000 (13:52 +0200)
committersambufe <samuel.bufe@publicispixelpark.de>
Wed, 17 May 2017 11:52:48 +0000 (13:52 +0200)
customer/fbb-ws/dev-db-fbb.pixelpark.net.yaml [deleted file]
customer/fbb-ws/dev-ws-fbb.pixelpark.net.yaml

diff --git a/customer/fbb-ws/dev-db-fbb.pixelpark.net.yaml b/customer/fbb-ws/dev-db-fbb.pixelpark.net.yaml
deleted file mode 100644 (file)
index 3b0442d..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
----
-infra::role: base
index 3b0442d3c925d4f4820fbb228ffd4a4ad755de38..5c024586ef8c938e1bd4861458eff4993e8912c1 100644 (file)
@@ -1,2 +1,107 @@
 ---
 infra::role: base
+infra::additional_classes:
+  - infra::profile::apache
+
+sudo::configs:
+  jenkins_rights:
+    priority: "06"
+    content: |
+      jenkins ALL=(apache) NOPASSWD: ALL
+
+repo::remi_php71: true
+
+php::fpm::pools:
+  www:
+    ensure: absent
+
+infra::profile::apache_php::fpm_pool:
+  webservice:
+    listen_owner: apache
+    listen_group: apache
+  cdm-webservice:
+    listen_owner: apache
+    listen_group: apache
+
+php::extensions:
+  gd: {}
+  mysqlnd: {}
+  pecl-ssh2: {}
+  xml: {}
+
+php::settings:
+  PHP/serialize_precision: 100
+  PHP/memory_limit: 256M
+  PHP/display_errors: On #remove on live!
+  PHP/post_max_size: 20M
+  PHP/register_globals: Off
+  PHP/upload_max_filesize: 4M
+  PHP/max_file_uploads: 50
+  PHP/include_path: '.:/opt/app/ZendFramework/library:/opt/app/web' #muss angepasst werden
+
+apache::default_vhost: false
+
+infra::profile::apache::pp_vhosts:
+  webservice:
+    docroot: '/var/www/webservice/web'
+    servername: dev-ws-fbb.pixelpark.net
+    ssl: false
+    docroot_owner: apache
+    docroot_group: apache
+    setenv:
+      - AIRLINE_DATA /www/data/fiona/app/online/docs/_airlines/index.php
+      - POI_CMS_EXPORT_FILE /www/data/fiona/app/online/docs/poiExport/index.php
+    directories:
+      - provider: 'directory'
+        path: "/var/www/webservice/web"
+        addhandlers:
+          - { handler: "proxy:unix:/var/run/php5-fpm-webservice.sock|fcgi://./" , extensions: '.php' }
+        options:
+          - FollowSymLinks
+        allow_override:
+          - All
+      - provider: 'location'
+        path: '/webservices_conf'
+        require: 'all denied'
+      - provider: 'locationmatch'
+        path: '/webservices/(config.ini|certificates)'
+        require: 'all denied'
+      - provider: location
+        path: '/webservices/push'
+        auth_type: Digest
+        auth_name: 'server'
+        auth_digest_provider: file
+        auth_user_file: '/etc/httpd/htdigest'
+        auth_require: 'valid-user'
+
+  cdm-webservice:
+    docroot: '/var/www/cdm-webservice/web'
+    servername: dev-cdmws-fbb.pixelpark.net
+    ssl: false
+    docroot_owner: apache
+    docroot_group: apache
+    setenv:
+      - AIRLINE_DATA /www/data/fiona/app/online/docs/_airlines/index.php
+      - POI_CMS_EXPORT_FILE /www/data/fiona/app/online/docs/poiExport/index.php
+    directories:
+      - provider: 'directory'
+        path: "/var/www/cdm-webservice/web"
+        addhandlers:
+          - { handler: "proxy:unix:/var/run/php5-fpm-cdm-webservice.sock|fcgi://./" , extensions: '.php' }
+        options:
+          - FollowSymLinks
+        allow_override:
+          - All
+      - provider: 'location'
+        path: '/webservices_conf'
+        require: 'all denied'
+      - provider: 'locationmatch'
+        path: '/webservices/(config.ini|certificates)'
+        require: 'all denied'
+      - provider: location
+        path: '/webservices/push'
+        auth_type: Digest
+        auth_name: 'server'
+        auth_digest_provider: file
+        auth_user_file: '/etc/httpd/htdigest'
+        auth_require: 'valid-user'