otherwise if a server has ensure => false but still calls logstash::configfile for any reason the file will try to be created but fail bc /etc/logstash does not exist
e.g. in your private base.pp you say
include logstash
logstash::configfile {
...
}
but somewhere in hiera you don't want to install logstash on a cluster so you have
logstash::ensure: absent
otherwise if a server has
ensure => false
but still callslogstash::configfile
for any reason the file will try to be created but fail bc/etc/logstash
does not existe.g. in your private
base.pp
you saybut somewhere in hiera you don't want to install
logstash
on a cluster so you havelogstash::ensure: absent