[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
conditional file copy
From: |
Jason Allen |
Subject: |
conditional file copy |
Date: |
Wed, 01 Oct 2003 13:12:10 -0500 |
Is there anyway to do something like the following with Cfengine?
copy:
any::
if(filexists$(linuxfiles)/passwd.$(host)){
$(linuxfiles)/passwd.$(host)
}else{
$(linuxfiles)/passwd
}
dest=/etc/passwd
server=$(cfserver)
mode=644
type=sum
In other words I'd like cfengine to copy passwd.$hostname if it exists
and if not copy passwd.
The problem is that want to manage the same files on large numbers of
dissimilar machine and trying to setup logical groups within cfengine is
proving to be very tedious.
Thanks,
Jason Allen
Fermilab
- conditional file copy,
Jason Allen <=