Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F10836423
D1166.id2976.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
D1166.id2976.diff
View Options
diff --git a/roles/devserver/userland-software/files/psysh.sls b/roles/devserver/userland-software/files/psysh.sls
new file mode 100644
--- /dev/null
+++ b/roles/devserver/userland-software/files/psysh.sls
@@ -0,0 +1,51 @@
+# -------------------------------------------------------------
+# Salt — Provision dev software
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2017-11-03
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% from "map.jinja" import dirs with context %}
+
+# -------------------------------------------------------------
+# Prepare for installation
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/usr/local/share/psysh:
+ file.directory:
+ - dir_mode: 755
+
+# -------------------------------------------------------------
+# Fetch software and PHP manual
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+psysh_software:
+ archive.extracted:
+ - name: /opt/psysh
+ - source: https://github.com/bobthecow/psysh/releases/download/v0.8.13/psysh-v0.8.13.tar.gz
+ - source_hash: 4436931f4baeac0b6709d89efe5a517dbcdfb3335e90d9bf5deb83207f90e293
+
+/usr/local/share/psysh/php_manual.sqlite:
+ file.managed:
+ - source: http://psysh.org/manual/en/php_manual.sqlite
+ - skip_verify: True
+ - require:
+ - file: /usr/local/share/psysh
+
+# -------------------------------------------------------------
+# Install binary
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+psysh_permissions:
+ file.managed:
+ - name: /opt/psysh/psysh
+ - mode: 755
+ - require:
+ - archive: psysh_software
+
+{{ dirs.bin }}/psysh:
+ file.symlink:
+ - target: /opt/psysh/psysh
+ - require:
+ - file: psysh_permissions
diff --git a/roles/devserver/userland-software/init.sls b/roles/devserver/userland-software/init.sls
--- a/roles/devserver/userland-software/init.sls
+++ b/roles/devserver/userland-software/init.sls
@@ -15,3 +15,4 @@
- .dev
- .misc
- .phabricator
+ - .psysh
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jul 29, 11:02 (10 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2854855
Default Alt Text
D1166.id2976.diff (2 KB)
Attached To
Mode
D1166: Install psysh on dev servers
Attached
Detach File
Event Timeline
Log In to Comment