On 01/03/2011 10:51 PM, Ace wrote: > I want to manage cronjobs as a " file " in solaris through puppet and > not using the puppet cron resource. > > I will be managing the file /var/spool/cron/crontabs/root. > > I want the cron file to be same across all servers except some servers > will have additional cron entries. > > How can I append to the file /var/spool/cron/crontabs/root , something > like appendifnosuchline in cfengine? > > Can "appendifnosuchline" be implemented through puppet even through > the file /var/spool/cron/crontabs/root is being managed through > puppet?
I think not. Usually, this is approached in either of two ways: 1. You create a template and there are facts or variables that control where your exceptions are included. 2. You create different versions of your crontab. Your manifests select sources using variables and if/else- or case-constructs, or using class inheritance (which is often more elegant). There may be more approaches still. HTH, Felix -- 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.
