Page MenuHomeDevCentral

D1312.id3366.diff
No OneTemporary

D1312.id3366.diff

diff --git a/pillar/webserver/sites.sls b/pillar/webserver/sites.sls
--- a/pillar/webserver/sites.sls
+++ b/pillar/webserver/sites.sls
@@ -50,6 +50,7 @@
command: /usr/local/sbin/php-fpm
web_php_sites:
+ # Nasqueron members
www.dereckson.be:
user: web-be-dereckson-www
source: wwwroot/dereckson.be/www
@@ -57,6 +58,11 @@
autochmod: True
php-fpm: prod
+ # Directly managed by Nasqueron
+ api.nasqueron.org:
+ user: web-org-nasqueron-api-serverslog
+ php-fpm: prod
+
# -------------------------------------------------------------
# States
#
diff --git a/roles/webserver-legacy/php-sites/files.sls b/roles/webserver-legacy/php-sites/files.sls
--- a/roles/webserver-legacy/php-sites/files.sls
+++ b/roles/webserver-legacy/php-sites/files.sls
@@ -11,6 +11,8 @@
{% for domain, site in pillar['web_php_sites'].iteritems() %}
+{% if 'target' in site %}
+
{{ site['target'] }}:
file.recurse:
- source: salt://{{ site['source'] }}
@@ -21,4 +23,6 @@
- user: {{ site['user'] }}
- group: web
+{% endif %}
+
{% endfor %}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 04:40 (21 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259541
Default Alt Text
D1312.id3366.diff (1 KB)

Event Timeline