summaryrefslogtreecommitdiffstats
path: root/examples/mac_dscl.pp
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-07-10 19:52:26 +1000
committerJames Turnbull <james@lovedthanlost.net>2008-07-10 19:52:26 +1000
commit605d760dd72b7b6bd3fd54e9f6c3ffacb1b9ee52 (patch)
treebfab41f07b972f61585ef2fcf454ad9fdef6c832 /examples/mac_dscl.pp
parentd25c2b282cc4cd703bba3d2457f93431098ddc85 (diff)
downloadpuppet-605d760dd72b7b6bd3fd54e9f6c3ffacb1b9ee52.tar.gz
puppet-605d760dd72b7b6bd3fd54e9f6c3ffacb1b9ee52.tar.xz
puppet-605d760dd72b7b6bd3fd54e9f6c3ffacb1b9ee52.zip
Moved debian to conf and updated examples directory
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