Hello,
First, the manifest is compiled on the master, not the agent, so that
test isn't being run where I think you want it to be run.
Second, you want the language guide:
http://docs.puppetlabs.com/guides/language_guide.html#conditionals
You should wrap the resource in your test.
What you real
Hello all!
I would like to install one package, but only with some condition was ok,
like:
package { "nagios-plugins-basic":
ensure => "1.4.15-personal1",
unless => "test `ls -ld /opt/nrpe* 2>/dev/null | wc -l` -ge 1",
}
but this not work =/
Could not retrieve catalog from remote se