Page MenuHomeDevCentral

D1291.id3317.diff
No OneTemporary

D1291.id3317.diff

diff --git a/pillar/top.sls b/pillar/top.sls
--- a/pillar/top.sls
+++ b/pillar/top.sls
@@ -18,3 +18,4 @@
- paas-jails.jails
- viperserv.bots
- viperserv.fantoir
+ - webserver.wwwroot51
diff --git a/roles/devserver/init.sls b/pillar/webserver/wwwroot51.sls
copy from roles/devserver/init.sls
copy to pillar/webserver/wwwroot51.sls
--- a/roles/devserver/init.sls
+++ b/pillar/webserver/wwwroot51.sls
@@ -1,11 +1,14 @@
# -------------------------------------------------------------
-# Salt — Provision a development server
+# Salt — Sites to provision on the devserver wwwroot51
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
-# Created: 2017-10-20
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
-include:
- - .dns
- - .userland-software
+wwwroot51_basedir: /var/51-wwwroot
+
+wwwroot51_directories:
+ tools:
+ user: dereckson
+ group: dereckson
+ repository: ssh://vcs@devcentral.nasqueron.org:5022/source/tools.git
diff --git a/roles/devserver/init.sls b/roles/devserver/init.sls
--- a/roles/devserver/init.sls
+++ b/roles/devserver/init.sls
@@ -9,3 +9,4 @@
include:
- .dns
- .userland-software
+ - .webserver-wwwroot51
diff --git a/roles/devserver/webserver-wwwroot51/init.sls b/roles/devserver/webserver-wwwroot51/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/devserver/webserver-wwwroot51/init.sls
@@ -0,0 +1,34 @@
+# -------------------------------------------------------------
+# Salt — Webserver wwwroot51 content
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-02-11
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% set basedir = pillar['wwwroot51_basedir'] %}
+
+# -------------------------------------------------------------
+# Base directory
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{{ basedir }}:
+ file.directory:
+ - dir_mode: 711
+
+# -------------------------------------------------------------
+# 51 sites
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{% for sitename, site in pillar['wwwroot51_directories'].iteritems() %}
+{{ basedir }}/{{ sitename }}:
+ file.directory:
+ - dir_mode: 711
+ - user: {{ site['user'] }}
+ - group: {{ site['group'] }}
+ git.latest:
+ - name: {{ site['repository'] }}
+ - target: {{ basedir }}/{{ sitename }}
+ - user: {{ site['user'] }}
+ - update_head: False
+{% endfor %}

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 27, 08:46 (2 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2376756
Default Alt Text
D1291.id3317.diff (2 KB)

Event Timeline