summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDan Bode <dan@bodepd.com>2010-06-02 11:46:47 -0500
committerDan Bode <dan@bodepd.com>2010-06-02 11:46:47 -0500
commit53accdfa1306b5e405628576c516b8e2c03222e3 (patch)
treed273a82592b43a1f4e7a5cf6336eba8e3485ec63 /tests
parent7ba8f5c287476cbd3e3fc51db2eebabda27380c7 (diff)
playing around with sudoers in classes
Diffstat (limited to 'tests')
-rw-r--r--tests/sudoers-classes.pp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/sudoers-classes.pp b/tests/sudoers-classes.pp
new file mode 100644
index 0000000..f1bc59e
--- /dev/null
+++ b/tests/sudoers-classes.pp
@@ -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