diff options
Diffstat (limited to 'modules/base_installation/manifests')
-rw-r--r-- | modules/base_installation/manifests/puppet.pp | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/modules/base_installation/manifests/puppet.pp b/modules/base_installation/manifests/puppet.pp index 05fe9a1..10b3773 100644 --- a/modules/base_installation/manifests/puppet.pp +++ b/modules/base_installation/manifests/puppet.pp | |||
@@ -109,10 +109,34 @@ class base_installation::puppet ( | |||
109 | } | 109 | } |
110 | 110 | ||
111 | $ips = lookup("ips", { 'default_value' => undef }) | 111 | $ips = lookup("ips", { 'default_value' => undef }) |
112 | file { "$base_installation::puppet_conf_path/host_ldap.info": | 112 | concat { "$base_installation::puppet_conf_path/host_ldap.info": |
113 | content => template("base_installation/puppet/host_ldap.info.erb"), | 113 | ensure => "present", |
114 | require => File[$base_installation::puppet_conf_path], | 114 | mode => "0600", |
115 | notify => Notify_refresh["notify-ldap-password"], | 115 | require => File[$base_installation::puppet_conf_path], |
116 | notify => Notify_refresh["notify-ldap-password"], | ||
117 | ensure_newline => true, | ||
118 | } | ||
119 | |||
120 | concat::fragment { "host_ldap add top": | ||
121 | target => "$base_installation::puppet_conf_path/host_ldap.info", | ||
122 | content => template("base_installation/puppet/host_ldap_add_top.info.erb"), | ||
123 | order => "00-01", | ||
124 | } | ||
125 | concat::fragment { "host_ldap add bottom": | ||
126 | target => "$base_installation::puppet_conf_path/host_ldap.info", | ||
127 | content => "EOF", | ||
128 | order => "00-99", | ||
129 | } | ||
130 | |||
131 | concat::fragment { "host_ldap mod top": | ||
132 | target => "$base_installation::puppet_conf_path/host_ldap.info", | ||
133 | content => template("base_installation/puppet/host_ldap_mod_top.info.erb"), | ||
134 | order => "01-01", | ||
135 | } | ||
136 | concat::fragment { "host_ldap mod bottom": | ||
137 | target => "$base_installation::puppet_conf_path/host_ldap.info", | ||
138 | content => "EOF", | ||
139 | order => "01-99", | ||
116 | } | 140 | } |
117 | 141 | ||
118 | notify_refresh { "notify-ldap-password": | 142 | notify_refresh { "notify-ldap-password": |