playing around with sudoers in classes
authorDan Bode <dan@bodepd.com>
Wed, 2 Jun 2010 16:46:47 +0000 (11:46 -0500)
committerDan Bode <dan@bodepd.com>
Wed, 2 Jun 2010 16:46:47 +0000 (11:46 -0500)
tests/sudoers-classes.pp [new file with mode: 0644]

diff --git a/tests/sudoers-classes.pp b/tests/sudoers-classes.pp
new file mode 100644 (file)
index 0000000..f1bc59e
--- /dev/null
@@ -0,0 +1,15 @@
+class parent {
+  sudo::spec { 'blah4':
+    #target => '/tmp/sudoers',
+    users => 'dan',
+    hosts => 'localhost',
+    commands => '/bin/true',
+  }
+}
+
+class child inherits parent {
+  Sudoers['blah4'] {
+    users => 'child'
+  }
+}
+include child