Page MenuHomeDevCentral

D1248.id3205.diff
No OneTemporary

D1248.id3205.diff

diff --git a/pillar/webserver-legacy/sites.sls b/pillar/webserver-legacy/sites.sls
--- a/pillar/webserver-legacy/sites.sls
+++ b/pillar/webserver-legacy/sites.sls
@@ -37,3 +37,10 @@
- docker
- ftp
- trustspace
+
+# -------------------------------------------------------------
+# Tweaks
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+web_autochmod:
+ - /var/wwwroot/dereckson.be/www
diff --git a/roles/webserver-legacy/init.sls b/roles/webserver-legacy/init.sls
--- a/roles/webserver-legacy/init.sls
+++ b/roles/webserver-legacy/init.sls
@@ -12,5 +12,6 @@
- .directories
- .zr
- .static-sites
+ - .tweaks
- .be/dereckson
- .org/nasqueron
diff --git a/roles/webserver-legacy/init.sls b/roles/webserver-legacy/tweaks/autochmod.sls
copy from roles/webserver-legacy/init.sls
copy to roles/webserver-legacy/tweaks/autochmod.sls
--- a/roles/webserver-legacy/init.sls
+++ b/roles/webserver-legacy/tweaks/autochmod.sls
@@ -1,16 +1,15 @@
# -------------------------------------------------------------
# Salt — Sites to provision on the legacy web server
-#
-# Currently, this is deployed to ysul.nasqueron.org
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
-include:
- - .account
- - .directories
- - .zr
- - .static-sites
- - .be/dereckson
- - .org/nasqueron
+{% for dir in salt['pillar.get']('web_autochmod', []) %}
+
+autochmod_{{ dir }}:
+ cmd.run:
+ - name: autochmod
+ - cwd: {{ dir }}
+
+{% endfor %}
diff --git a/roles/webserver-legacy/init.sls b/roles/webserver-legacy/tweaks/init.sls
copy from roles/webserver-legacy/init.sls
copy to roles/webserver-legacy/tweaks/init.sls
--- a/roles/webserver-legacy/init.sls
+++ b/roles/webserver-legacy/tweaks/init.sls
@@ -1,16 +1,9 @@
# -------------------------------------------------------------
# Salt — Sites to provision on the legacy web server
-#
-# Currently, this is deployed to ysul.nasqueron.org
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
include:
- - .account
- - .directories
- - .zr
- - .static-sites
- - .be/dereckson
- - .org/nasqueron
+ - .autochmod

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 11:23 (17 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2309164
Default Alt Text
D1248.id3205.diff (2 KB)

Event Timeline