File: mac_dscl.pp

package info (click to toggle)
puppet 0.24.5-3%2Blenny2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 9,688 kB
  • ctags: 7,630
  • sloc: ruby: 97,655; sh: 721; lisp: 262; makefile: 167; xml: 122; python: 28
file content (28 lines) | stat: -rwxr-xr-x 565 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;

}