Page MenuHomeDevCentral

D1451.id3723.diff
No OneTemporary

D1451.id3723.diff

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
@@ -19,3 +19,4 @@
- .notifications
- .phabricator
- .psysh
+ - .wordpress
diff --git a/roles/devserver/userland-software/wordpress.sls b/roles/devserver/userland-software/wordpress.sls
new file mode 100644
--- /dev/null
+++ b/roles/devserver/userland-software/wordpress.sls
@@ -0,0 +1,28 @@
+# -------------------------------------------------------------
+# Salt — Provision dev software
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-03-20
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% from "map.jinja" import dirs with context %}
+
+# -------------------------------------------------------------
+# Install phar and symlink to bin
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/opt/wp-cli:
+ file.directory
+
+/opt/wp-cli/wp-cli.phar:
+ file.managed:
+ - source: https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
+ - skip_verify: True
+ - mode: 755
+
+{{ dirs.bin }}/wp:
+ file.symlink:
+ - target: /opt/wp-cli/wp-cli.phar
+ - require:
+ - file: /opt/wp-cli/wp-cli.phar

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 1, 06:48 (20 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2274075
Default Alt Text
D1451.id3723.diff (1 KB)

Event Timeline