Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3767961
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/roles/webserver-content/org/nasqueron/api.sls b/roles/webserver-content/org/nasqueron/api.sls
index 80f31e3..5e6bd4c 100644
--- a/roles/webserver-content/org/nasqueron/api.sls
+++ b/roles/webserver-content/org/nasqueron/api.sls
@@ -1,68 +1,69 @@
# -------------------------------------------------------------
# Salt — Provision api.nasqueron.org website
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{% if salt['node.has_web_content'](".org/nasqueron/api") %}
# -------------------------------------------------------------
# Base part from rOPS
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/var/wwwroot/nasqueron.org/api:
file.recurse:
- source: salt://wwwroot/nasqueron.org/api
- exclude_pat: E@.git
- include_empty: True
- clean: False
- dir_mode: 755
- file_mode: 644
- user: deploy
- group: web
# -------------------------------------------------------------
# API micro services are deployed to /srv/api
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/srv/api:
file.directory:
- user: deploy
- group: web
- dir_mode: 755
/srv/api/data:
file.directory:
- user: deploy
- group: web
- dir_mode: 755
# -------------------------------------------------------------
# /servers-log micro service
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/srv/api/servers-log:
file.recurse:
- source: salt://software/api/serverslog
- exclude_pat: E@.git
- include_empty: True
- clean: False
- dir_mode: 755
- file_mode: 644
- user: deploy
- group: web
api_servers_log_dependencies:
cmd.run:
- name: composer install
- runas: deploy
- cwd: /srv/api/servers-log
- creates: /srv/api/servers-log/vendor
/srv/api/data/servers-log-all.json:
file.managed:
- user: web-org-nasqueron-api-serverslog
- mode: 644
+ - replace: False
{% endif %}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Nov 25, 04:31 (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259535
Default Alt Text
(2 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment