Ensure we compare with a valid file in log fix

mod_enable_dir is not necessarily defined under all the
operating systems. For example, for Redhat it has undef value.
It is causing puppet manifest to fail, so just execute that fix
when that directory has some value.

Change-Id: Iab56636151ac4d7da24a5a5ce18356b81adad832
This commit is contained in:
Yolanda Robla 2016-06-28 11:14:47 +02:00
parent 2bdaa06453
commit 3e8939f9d6

View File

@ -38,5 +38,7 @@ class infracloud::logs(
}
# Temporary workaround until https://github.com/puppetlabs/puppetlabs-apache/pull/1388 is merged and released
File[$::apache::mod_enable_dir] -> Exec["syntax verification for ${vhost_name}"]
if $::apache::mod_enable_dir != undef {
File[$::apache::mod_enable_dir] -> Exec["syntax verification for ${vhost_name}"]
}
}