Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F57019217
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/roles/saltmaster/sudo/init.sls b/roles/saltmaster/sudo/init.sls
new file mode 100644
index 0000000..12f1b95
--- /dev/null
+++ b/roles/saltmaster/sudo/init.sls
@@ -0,0 +1,20 @@
+# -------------------------------------------------------------
+# Salt — Salt master configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2017-04-28
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% from "map.jinja" import dirs with context %}
+
+# -------------------------------------------------------------
+# Sudo capabilities
+#
+# Ops should be able to sudo -u salt …
+# -------------------------------------------------------------
+
+saltmaster_sudo_capabilities_file:
+ file.managed:
+ - name: {{ dirs.etc }}/sudoers.d/salt
+ - source: salt://roles/saltmaster/sudo/files/salt
diff --git a/top.sls b/top.sls
index b00e9b9..182b68d 100644
--- a/top.sls
+++ b/top.sls
@@ -1,24 +1,26 @@
# -------------------------------------------------------------
# Salt configuration for Nasqueron servers
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2016-04-10
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
base:
'*':
- roles/core/rc
- roles/core/hostname
- roles/core/network
- roles/core/motd
- roles/core/rsyslog
- roles/core/sshd
- roles/core/letsencrypt
+ 'local':
+ - roles/saltmaster/sudo
'eglide':
- roles/shellserver/users
- roles/shellserver/userland-software
- roles/shellserver/eglide-website
- roles/shellserver/vhosts
- roles/shellserver/web-hosting
- roles/shellserver/odderon
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Nov 15, 00:40 (5 d, 20 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4257799
Default Alt Text
(1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment