Page MenuHomeDevCentral

D3306.diff
No OneTemporary

D3306.diff

diff --git a/pillar/saas/nextcloud/windriver/nextcloud.sls b/pillar/saas/nextcloud/windriver/nextcloud.sls
new file mode 100644
--- /dev/null
+++ b/pillar/saas/nextcloud/windriver/nextcloud.sls
@@ -0,0 +1,9 @@
+# -------------------------------------------------------------
+# NextCloud
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+nextcloud:
+ user: web-org-nasqueron-drive
diff --git a/pillar/tower.sls b/pillar/tower.sls
--- a/pillar/tower.sls
+++ b/pillar/tower.sls
@@ -11,3 +11,5 @@
base:
- paas/alkane/{{ minion_id }}/*.sls
- paas/docker/{{ minion_id }}/*.sls
+
+ - saas/nextcloud/{{ minion_id }}/*.sls
diff --git a/roles/saas-nextcloud/nextcloud/files/nextcloud.sls b/roles/saas-nextcloud/nextcloud/files/nextcloud.sls
new file mode 100644
--- /dev/null
+++ b/roles/saas-nextcloud/nextcloud/files/nextcloud.sls
@@ -0,0 +1,20 @@
+# -------------------------------------------------------------
+# NextCloud
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/saas-nextcloud/nextcloud/files/nextcloud.sls
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+SHELL=/bin/sh
+PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
+
+# See crontab(5) for field format.
+*/5 * * * * {{ user }} php -d apc.enable_cli=1 -f /usr/local/www/nextcloud/cron.php
diff --git a/roles/saas-nextcloud/nextcloud/init.sls b/roles/saas-nextcloud/nextcloud/init.sls
--- a/roles/saas-nextcloud/nextcloud/init.sls
+++ b/roles/saas-nextcloud/nextcloud/init.sls
@@ -26,3 +26,14 @@
# NextCloud
- nextcloud-{{ packages_prefixes.php | replace("-", "") }}
+
+# -------------------------------------------------------------
+# Crontab
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/etc/cron.d/nextcloud:
+ file.managed:
+ - source: salt://roles/saas-nextcloud/nextcloud/files/nextcloud.sls
+ - template: jinja
+ - context:
+ user: {{ pillar["nextcloud"]["user"] }}

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 02:42 (20 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2307258
Default Alt Text
D3306.diff (2 KB)

Event Timeline