}
$xmpp = lookup("base_installation::notify_xmpp", { "default_value" => {} })
+ $slack = lookup("base_installation::notify_slack", { "default_value" => {} })
file { "$base_installation::puppet_conf_path/puppet.conf":
content => template("base_installation/puppet/puppet.conf.erb"),
}
}
+ unless empty($slack) {
+ file { "$base_installation::puppet_conf_path/slack.yaml":
+ content => template("base_installation/puppet/slack.yaml.erb"),
+ require => File[$base_installation::puppet_conf_path],
+ }
+ }
+
if file("$base_installation::puppet_conf_path/host_ldap.info", "/dev/null") != "" and
empty($facts["ldapvar"]) {
fail("LDAP was activated but facts are not available")