Hi
> exec { "sources":
> command => "sudo gem sources -a http://gems.github.com/ >
> /tmp/githubadded",
> creates => "/tmp/githubadded"
> }
>
> I hope that's the right way to do it...
I would rather do:
exec { "sources":
command => "sudo gem sources -a http://gems.github.com/",
unless => 'gem source -l | grep -q gems.github.com',
}
which is more idempotent.
/tmp is thought only for temporary files. on the different systems this
file will be missing after a certain amount of time or after a reboot.
hence puppet would rerun the exec again.
cheers pete
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---