bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

copy and ifelapsed


From: Alexander Jolk
Subject: copy and ifelapsed
Date: Thu, 14 Apr 2005 22:01:40 +0200

Hi,

I'm doing a lot of copying from many hosts to one, in order to collect
all SSH host keys onto the server.  Since this is quite a long
operation, I'm using `ifelapsed=1440', assuming that host keys don't
really change that often:

copy:
      /etc/ssh/ssh_host_rsa_key.pub
            dest=$(copydest)/ssh-a1-e01.pub
            server=a1-e01
            type=checksum o=root g=root m=644
            ifelapsed=1440 inform=true
            define=ssh_key_copied
(...and a few hundred auto-generated stanzas of the same kind.)

It seems cfagent does first establish a connection to the remote host,
and abandons only afterwards because of the `ifelapsed'.  Looking at the
code in do.c, I'm not quite sure how to get around this limitation.

Alex


-- 
Alexander Jolk         /         BUF Compagnie
tel +33-1 42 68 18 28 /  fax +33-1 42 68 18 29




reply via email to

[Prev in Thread] Current Thread [Next in Thread]