Page MenuHomeDevCentral

No OneTemporary

diff --git a/roles/devserver/userland-software/init.sls b/roles/devserver/userland-software/init.sls
index 4cb40e0..a9b4267 100644
--- a/roles/devserver/userland-software/init.sls
+++ b/roles/devserver/userland-software/init.sls
@@ -1,21 +1,22 @@
# -------------------------------------------------------------
# Salt — Provision software
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2017-10-20
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
include:
# Shell server content
- roles/shellserver/userland-software/base
- roles/shellserver/userland-software/irc
- roles/shellserver/userland-software/web
# Builder role content
- roles/builder
# Software specific for development servers
- .dev
- .misc
- .notifications
- .phabricator
- .psysh
+ - .wordpress
diff --git a/roles/devserver/userland-software/wordpress.sls b/roles/devserver/userland-software/wordpress.sls
new file mode 100644
index 0000000..c84482a
--- /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/x-diff
Expires
Mon, Nov 25, 06:59 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259646
Default Alt Text
(2 KB)

Event Timeline