Hi,

the sledge hammer approach:

file { 'couchdb.yaml':
         path        => '/etc/dd-agent/conf.d/couchdb.yaml',
         ensure      => $couchDbServer ? {
                               true => "present",
                               default => "absent",
         },
         content     => template('datadog/couchdb.yaml.erb'),
     }

But you probably want to look for a more elegant solution, such as
including different classes depending on the flags from hiera.

HTH,
Felix

On 04/10/2014 02:07 AM, Jeremy Frady wrote:
> My end objective is to utilize a yaml boolean, in this
> case couchDbServer, as an entry for a case that dictates whether a file
> is present or not.
>     file { 'couchdb.yaml':
>         path        => '/etc/dd-agent/conf.d/couchdb.yaml',
>         ensure      => 'present',
>         content     => template('datadog/couchdb.yaml.erb'),
>     }

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/53466981.7000203%40alumni.tu-berlin.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to