On Fri, Apr 22, 2011 at 2:34 PM, trey85stang <trey85st...@gmail.com> wrote:
> Is there a way to override a schedule for a package if the package is > not installed? > > class packages { > schedule { installs: > range => "2-4", > period => daily, > repeat => 1, > } > package { openssh: > ensure => latest, > schedule => installs, > } > } > > I dont want to check if openssh is the latest package everytime puppet > runs; but I do want it installed if it is not already installed > regardless of the schedule. > > Anyway to do this? > > Hi, Sure, there are many ways to achieve this. You would be better off defining which packages should be present on which nodes in another class. Then use an include in the node(s) definition (or whatever method you have defined for your architecture structure). BTW, if you're using yum and you would like to keep pkgs. updated, you may want to look into yum-cron. -- Cheers, Steven ----------------------- Steven Acres UNIX/Linux System Administrator -- 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.