-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathsimple-usage3.pp
45 lines (39 loc) · 1.14 KB
/
simple-usage3.pp
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# here is an example of how to use user excludes and types:
# on the ipa server:
# NOTE: the 'admin' user is automatically excluded from being auto purged...
class { '::ipa::server':
shorewall => true,
user_excludes => [
"^test[0-9]{1,}\$", # test\d
],
}
# create an unmanaged user
ipa::server::user { 'james':
first => 'James',
last => 'Shubin',
modify => false,
watch => false,
}
# create a managed user
ipa::server::user { 'ntesla':
first => 'Nikola',
last => 'Tesla',
city => 'Shoreham',
state => 'New York',
postalcode => '11786',
}
# create a user using a full principal as the primary key
# NOTE: the principal itself can't be edited without a remove/add
ipa::server::user { 'aturing/[email protected]':
first => 'Alan',
last => 'Turning',
random => true, # set a password randomly
password_file => true, # store the password in plain text ! (bad)
}
# create a user by principal but without the instance set
ipa::server::user { '[email protected]':
first => 'Arthur',
last => 'Guyton',
jobtitle => 'Physiologist',
orgunit => 'Research',
}