Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F53428510
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/pillar/saas/nextcloud/windriver/nextcloud.sls b/pillar/saas/nextcloud/windriver/nextcloud.sls
new file mode 100644
index 0000000..cf2f9fc
--- /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
index 4494701..c96c8c9 100644
--- a/pillar/tower.sls
+++ b/pillar/tower.sls
@@ -1,13 +1,15 @@
# -------------------------------------------------------------
# Salt configuration for Nasqueron servers
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# Description: External pillar to configure pillar stanza
# by pillar, grain or option value
# Reference: https://github.com/jgraichen/salt-tower
# -------------------------------------------------------------
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
index 0000000..6c5cee8
--- /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
index 3d87eb3..b9e1450 100644
--- a/roles/saas-nextcloud/nextcloud/init.sls
+++ b/roles/saas-nextcloud/nextcloud/init.sls
@@ -1,28 +1,39 @@
# -------------------------------------------------------------
# Salt — NextCloud
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{% from "map.jinja" import packages_prefixes with context %}
# -------------------------------------------------------------
# Software
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
nextcloud_software:
pkg.installed:
- pkgs:
# Dependencies
- {{ packages_prefixes.php }}sysvsem
- {{ packages_prefixes.pecl }}APCu
- {{ packages_prefixes.php }}opcache
- {{ packages_prefixes.php }}ldap
- {{ packages_prefixes.php }}gmp
- {{ packages_prefixes.php }}exif
- {{ packages_prefixes.php }}bz2
- openldap26-client
# 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
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Oct 11, 21:08 (41 m, 53 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4172981
Default Alt Text
(3 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment