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
|
# File 'manifests/serverinstall.pp', line 1
define ipa::serverinstall (
$host = $name,
$realm = {},
$domain = {},
$adminpw = {},
$dspw = {},
$dnsopt = {},
$ntpopt = {}
) {
exec { "serverinstall-${host}":
command => shellquote('/usr/sbin/ipa-server-install',"--hostname=${host}","--realm=${realm}","--domain=${domain}","--admin-password=${adminpw}","--ds-password=${dspw}","${dnsopt}","${ntpopt}",'--unattended'),
timeout => '0',
unless => "/usr/sbin/ipactl status >/dev/null 2>&1",
creates => "/etc/ipa/default.conf",
notify => Ipa::Flushcache["server-${host}"],
logoutput => "on_failure"
}<- notify { "Running IPA server install, please wait.": }
ipa::flushcache { "server-${host}":
notify => Ipa::Adminconfig[$host],
}
ipa::adminconfig { $host:
realm => $realm
}
}
|