On Tue, Jan 4, 2011 at 8:02 PM, Felix Frank <[email protected]
> wrote:

> 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.
>

Ive recently started using the method described below which is working well
so far. It may not be able to work with the 'appendifnosuchline' approach.

http://linuxman.wikispaces.com/Creating+a+cron+job+with+puppet

-- 
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.

Reply via email to