-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathsimple-usage.pp
36 lines (29 loc) · 1023 Bytes
/
simple-usage.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
# here is some basic usage of the ipa module
# on the ipa server:
$domain = $::domain
class { '::ipa::server':
domain => $domain,
shorewall => true, # uses my puppet-shorewall module
}
ipa::server::host { 'nfs': # NOTE: adding .${domain} is a good idea....
domain => $domain,
macaddress => '00:11:22:33:44:55',
random => true, # set a one time password randomly
locality => 'Montreal, Canada',
location => 'Room 641A',
platform => 'Supermicro',
osstring => 'CentOS 6.4 x86_64',
comment => 'Simple NFSv4 Server',
watch => true, # read and understand the docs well
}
ipa::server::host { 'test1':
domain => $domain,
password => 'password',
watch => true, # read and understand the docs well
}
# and on the nfs server (an ipa client):
class { '::ipa::client::host::deploy':
nametag => 'nfs', # needs to match the ipa:server:host $name
}
# if you use fqdn's for the ipa:server:host $name's, then you can deploy with:
include ipa::client::host::deploy