Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3792090
D1937.id4901.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D1937.id4901.diff
View Options
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"].items() if build["mode"] == "release"} %}
+{% set php_release_versions = set([(build['version'], build['hash']) for build in php_release_builds.values()]) %}
+
+# -------------------------------------------------------------
+# Root directory
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/opt/php:
+ file.directory:
+ - user: builder
+
+# -------------------------------------------------------------
+# Source code
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/opt/php/archives:
+ file.directory:
+ - user: builder
+
+{% for version, hash in 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
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 28, 15:19 (9 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2269256
Default Alt Text
D1937.id4901.diff (2 KB)
Attached To
Mode
D1937: Fetch and extract released PHP source code
Attached
Detach File
Event Timeline
Log In to Comment