[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Pb with tidy
From: |
Patrice GUERLAIS |
Subject: |
Pb with tidy |
Date: |
Tue, 10 Apr 2001 11:40:59 +0200 |
Hi all,
I've a problem with the tidy section, which I can call only once :-( I'm using
cfengine 1.6.3 on Linux/RedHat 6.2.
I want to copy files and ensure that some of them are links rather than plain
files. This needs to be done for multiple logical sets
of files, and I therefore want to organize my cfengine.conf file in order to
reflect that logical structure :
- a first set of copy/tidy/links calls for the first set of files
- a second set of copy/tidy/links calls for the second set
- ...
The cfengine.conf file can look like (the copy calls have been removed, they
have no influence on cfengine behaviour) :
<cut>
control:
actionsequence = (
# Deletes a first set of files, then creates links with the
same names
tidy.test1
links.test1
# Deletes a second set of files, then creates links with the
same names
tidy.test2
links.test2
)
tidy:
test1::
/tmp pat=test1 age=0
test2::
/tmp pat=test2 age=0
links:
test1::
/tmp/test1 -> /tmp/test.conf
test2::
/tmp/test2 -> /tmp/test.conf
</cut>
To perform the test, you have to :
- copy that file in /tmp 3 times, with the names 'test.conf', 'test1' and
'test2'. They must be plain files.
- cd /tmp
- cfengine -f /tmp/test.conf
'test1' is destroyed and replaced with a link to test.conf, whereas 'test2'
isn't deleted and can't be linked to test.conf.
If you remove the 'test2::' selector in the tidy section, everything is ok.
I tried splitting the tidy section in 2 parts, it changes nothing.
Any idea ?
Thanks for your help
Patrice
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Pb with tidy,
Patrice GUERLAIS <=