summaryrefslogtreecommitdiffstats
path: root/examples/mac_dscl_revert.pp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/mac_dscl_revert.pp')
-rwxr-xr-xexamples/mac_dscl_revert.pp26
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/mac_dscl_revert.pp b/examples/mac_dscl_revert.pp
new file mode 100755
index 000000000..c9bd2b541
--- /dev/null
+++ b/examples/mac_dscl_revert.pp
@@ -0,0 +1,26 @@
+#!/usr/bin/env puppet --debug --verbose --trace
+#
+# Jeff McCune: I use this for developing and testing the directory service
+# provider.
+
+User { provider => "directoryservice" }
+Group { provider => "directoryservice" }
+
+user {
+ "testgone":
+ ensure => absent,
+ uid => 550;
+ "testhere":
+ ensure => absent,
+ uid => 551;
+}
+
+group {
+ "testgone":
+ ensure => absent,
+ gid => 550;
+ "testhere":
+ ensure => absent,
+ gid => 551;
+
+}