summaryrefslogtreecommitdiffstats
path: root/examples/mac_dscl.pp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/mac_dscl.pp')
-rwxr-xr-xexamples/mac_dscl.pp28
1 files changed, 28 insertions, 0 deletions
diff --git a/examples/mac_dscl.pp b/examples/mac_dscl.pp
new file mode 100755
index 000000000..ff59f9d8d
--- /dev/null
+++ b/examples/mac_dscl.pp
@@ -0,0 +1,28 @@
+#!/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 => present,
+ password => "foobar",
+ shell => "/bin/bash",
+ uid => 551;
+}
+
+group {
+ "testgone":
+ ensure => absent,
+ gid => 550;
+ "testhere":
+ ensure => present,
+ gid => 551;
+
+} \ No newline at end of file