That's definitely way better than what I was planning on doing, thanks Peter!
2009/6/27 Peter Meier <peter.me...@immerda.ch> > > 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 > > > > -- Regards, Swati --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---