diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-08-14 22:49:29 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-08-17 12:50:25 +0200 |
commit | 7dc85dc776e158e26202362f11a72d7491ef07c8 (patch) | |
tree | a3e1c6d358efe68d8f00604ae10377735aca76cb /modules/base_installation/manifests | |
parent | 7f8c632757246813c0a9fdbf0c26ef036ff396be (diff) | |
download | Puppet-7dc85dc776e158e26202362f11a72d7491ef07c8.tar.gz Puppet-7dc85dc776e158e26202362f11a72d7491ef07c8.tar.zst Puppet-7dc85dc776e158e26202362f11a72d7491ef07c8.zip |
Change host_ldap to concat
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": |