Page MenuHomeDevCentral

D1937.id4897.diff
No OneTemporary

D1937.id4897.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,37 @@
+# -------------------------------------------------------------
+# Salt — Compile custom PHP builds
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-10-16
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# Root directory
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/opt/php:
+ file.directory:
+ - user: builder
+
+# -------------------------------------------------------------
+# Source code
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/opt/php/archives:
+ file.directory:
+ - user: builder
+
+{% set versions = [(build['version'], build['hash'])
+ for build in pillar["php_custom_builds"].values()
+ if build["mode"] == "release"] %}
+
+{% for version, hash in set(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
Fri, Nov 29, 03:56 (21 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2270659
Default Alt Text
D1937.id4897.diff (2 KB)

Event Timeline