Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3805872
D1451.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1451.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 1, 04:30 (21 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2274075
Default Alt Text
D1451.diff (1 KB)
Attached To
Mode
D1451: Install wp-cli on devserver role
Attached
Detach File
Event Timeline
Log In to Comment