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
|
# File 'manifests/install/server/replica.pp', line 2
class easy_ipa::install::server::replica {
$replica_install_cmd = "\
/usr/sbin/ipa-replica-install \
--principal=${easy_ipa::final_domain_join_principal} \
--admin-password='${easy_ipa::final_domain_join_password}' \
${easy_ipa::install::server::server_install_cmd_opts_hostname} \
--realm=${easy_ipa::final_realm} \
--domain=${easy_ipa::domain} \
--server=${easy_ipa::ipa_master_fqdn} \
${easy_ipa::install::server::server_install_cmd_opts_zone_overlap} \
${easy_ipa::install::server::server_install_cmd_opts_dnssec_validation} \
${easy_ipa::install::server::server_install_cmd_opts_setup_dns} \
${easy_ipa::install::server::server_install_cmd_opts_setup_ca} \
${easy_ipa::install::server::server_install_cmd_opts_forwarders} \
${easy_ipa::install::server::server_install_cmd_opts_ip_address} \
${easy_ipa::install::server::server_install_cmd_opts_no_ntp} \
${easy_ipa::install::server::server_install_cmd_opts_no_ui_redirect} \
${easy_ipa::install::server::server_install_cmd_opts_mkhomedir } \
--unattended"
# TODO: config-show and grep for IPA\ masters
file { '/etc/ipa/primary':
ensure => 'file',
content => 'Added by IPA Puppet module. Designates primary master. Do not remove.',
}
-> exec { "server_install_${easy_ipa::ipa_server_fqdn}":
command => $replica_install_cmd,
timeout => 0,
unless => '/usr/sbin/ipactl status >/dev/null 2>&1',
creates => '/etc/ipa/default.conf',
logoutput => 'on_failure',
notify => Easy_ipa::Helpers::Flushcache["server_${easy_ipa::ipa_server_fqdn}"],
before => Service['sssd'],
}
-> cron { 'k5start_root':
command => '/usr/bin/k5start -f /etc/krb5.keytab -U -o root -k /tmp/krb5cc_0 > /dev/null 2>&1',
user => 'root',
minute => '*/1',
require => Package[$::easy_ipa::params::kstart_package_name],
}
}
|