I can't seem to get exec unless to work right, it ignores the unless and
always runs the exec:
r...@puppet-test:~# cat /tmp/exectest.pp
exec{"echo 1 > /tmp/ran":
path => "/",
unless => "true",
}
r...@puppet-test:~#
r...@puppet-test:~# rm /tmp/ran ; ls /tmp/ran
ls: cannot access /tmp/ran: No such file or directory
r...@puppet-test:~#
r...@puppet-test:~# puppet --verbose /tmp/exectest.pp
info: Loading fact acpi_available
info: Loading fact interfaces
info: Loading fact virtual
sh: Syntax error: Bad fd number
sh: Syntax error: Bad fd number
notice: //Exec[echo 1 > /tmp/ran]/returns: executed successfully
r...@puppet-test:~#
r...@puppet-test:~# ls /tmp/ran
/tmp/ran
r...@puppet-test:~#
seph
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---