On Mon, Feb 27, 2012 at 8:34 AM, psyber <psyb...@gmail.com> wrote: > I have a script that I exec every puppet run that contacts a web site to > fetch a version number for a program then compares it to the installed > version number to determine if they match. If they match the script exits, > if they don't match it downloads a tarball and runs a somewhat complex set > of installation steps. The tarball, version number and installation script > are all maintained by another process. I don't really want to take over that > responsibility as this all works to my satisfaction however the exec in > dashboard is seen as a change even when the script exits 0 after the check. > Is there a way to exec a script without it being seen as a change in > dashboard or is there possibly another way to do this?
That's what unless and onlyif attributes are intended for in exec. exec { 'install_software': command => 'complex_script', unless => 'check_installation', } HTH, Nan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.