Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3913177
D1067.diff
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
D1067.diff
View Options
diff --git a/pillar/users/shellgroups.sls b/pillar/users/shellgroups.sls
--- a/pillar/users/shellgroups.sls
+++ b/pillar/users/shellgroups.sls
@@ -11,6 +11,12 @@
# -------------------------------------------------------------
shellgroups:
+ ops:
+ gid: 3001
+ description: Nasqueron Operations
+ members:
+ - dereckson
+ - sandlayth
chaton-dev:
gid: 827
description: Bonjour chaton
diff --git a/roles/core/sudo/files/ops b/roles/core/sudo/files/ops
new file mode 100644
--- /dev/null
+++ b/roles/core/sudo/files/ops
@@ -0,0 +1,17 @@
+# -------------------------------------------------------------
+# SaltStack deployment
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2017-10-19
+# License: Trivial work, not eligible to copyright
+# Source file: roles/core/sudo/files/ops
+# -------------------------------------------------------------
+#
+# <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>
+
+%ops ALL = (ALL) NOPASSWD: ALL
diff --git a/roles/core/sudo/init.sls b/roles/core/sudo/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/core/sudo/init.sls
@@ -0,0 +1,19 @@
+# -------------------------------------------------------------
+# Salt — sudo configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2017-10-19
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% from "map.jinja" import dirs with context %}
+
+# -------------------------------------------------------------
+# Sudo capabilities
+#
+# Ops should be able to sudo …
+# -------------------------------------------------------------
+
+{{ dirs.etc }}/sudoers.d/ops:
+ file.managed:
+ - source: salt://roles/core/sudo/files/ops
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 08:45 (21 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2307873
Default Alt Text
D1067.diff (2 KB)
Attached To
Mode
D1067: Create an ops group with full sudo capability
Attached
Detach File
Event Timeline
Log In to Comment