Page MenuHomeDevCentral

D1937.id4899.diff
No OneTemporary

D1937.id4899.diff

diff --git a/pillar/webserver/sites.sls b/pillar/webserver/sites.sls
--- a/pillar/webserver/sites.sls
+++ b/pillar/webserver/sites.sls
@@ -58,6 +58,12 @@
# Username must be unique and use max 31 characters.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+php_custom_builds:
+ php56:
+ mode: release
+ version: 5.6.38
+ hash: d65b231bbdd63be4439ef5ced965cfd63e62983429dbd4dfcfb49981593ebc03
+
php_fpm_instances:
# PHP 7.2, generally installed as package/port
prod:
diff --git a/roles/webserver-legacy/php-builder/init.sls b/roles/webserver-legacy/php-builder/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/webserver-legacy/php-builder/init.sls
@@ -0,0 +1,10 @@
+# -------------------------------------------------------------
+# Salt — Compile custom PHP builds
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-10-16
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+include:
+ - .source
diff --git a/roles/webserver-legacy/php-builder/source.sls b/roles/webserver-legacy/php-builder/source.sls
new file mode 100644
--- /dev/null
+++ b/roles/webserver-legacy/php-builder/source.sls
@@ -0,0 +1,36 @@
+# -------------------------------------------------------------
+# Salt — Compile custom PHP builds
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-10-16
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% set php_release_builds = [build for build in pillar["php_custom_builds"].values() if build["mode"] == "release"] %}
+{% set php_release_versions = [(build['version'], build['hash']) for build in php_release_builds] %}
+
+# -------------------------------------------------------------
+# Root directory
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/opt/php:
+ file.directory:
+ - user: builder
+
+# -------------------------------------------------------------
+# Source code
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/opt/php/archives:
+ file.directory:
+ - user: builder
+
+{% for version, hash in set(php_release_versions) %}
+
+/opt/php/archives/php-{{ version }}.tar.bz:
+ file.managed:
+ - source: http://fr2.php.net/get/php-{{ version }}.tar.bz2/from/this/mirror
+ - source_hash: {{ hash }}
+ - user: builder
+
+{% endfor %}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 12:27 (21 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2262488
Default Alt Text
D1937.id4899.diff (2 KB)

Event Timeline