[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Variables in editfiles, setline
From: |
Mark . Burgess |
Subject: |
Re: Variables in editfiles, setline |
Date: |
Fri, 21 Jun 2002 15:53:09 +0200 (MET DST) |
Seems to work for me....maybe $(MINUTE) is not actually defined?
M
On 21 Jun, Rune Mossige wrote:
> Hello,
> I want to use a variable in an editfiles section, but using setline
> apparently does not allow variables...
>
> I want to appent a crontab entry, where the minute field is calculated
> earlier in a module. I only want to append this crontab entry if a
> similar entry does not exist....I have tried:
>
> editfiles:
> { /etc/crontab
> SetLine "$(MINUTE) 4,5,8,9,12,13,16,17 * * * root
> /gecoapp/share/rsync_computenodes""
> AppendIfNoLineMatching ".*rsync_computenodes.*"
> }
>
> but then cfengine complains with:
> Wildcards cannot be used in this context:
> cfengine:GST0H5::Execution terminated after parsing due to errors in
> program
>
> How can I get around this? I am using 2.0.1.
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~