[Csync2] using FQDN for hosts

Daniel Dehennin daniel.dehennin at ac-caen.fr
Thu Sep 25 11:29:55 CEST 2008


Hello,

I'm trying to setup a csync2 configuration between a master and 212
slaves :-)

I have two problems with my setup:

- Is there any way to specify the certificate and key files ? My hosts
  already have a certificate /etc/ssl/certs/$(hostname -f).cert and a
  private key /etc/ssl/private/$(hostname -f).key

- When running csync2 in verbose mode I have the following messages:
Connecting to host horus.0140096d.rne.ac-caen.fr (PLAIN) ...
Local> CONFIG \n
Peer> This host (horus) is not a member of any configured group.\n
ERROR from peer horus.0140096d.rne.ac-caen.fr: This host (horus) is not a member of any configured group.
Config command failed.
ERROR: Connection to remote host failed.
Host stays in dirty state. Try again later...
SQL: SELECT command, logfile FROM action GROUP BY command, logfile
Trying to fetch a row from the database.
SQL Query finished.
SQL: COMMIT TRANSACTION
Finished with 2 errors.

The problem is that we have servers on many sites and the all have the
same name, so I want to use their FQDN but it seems to be impossible :-/

NB: I disabled SSL between my tests machines for now.

Regards.
-- 
Daniel Dehennin
RAIP de l'Orne
tél: 0.810.14.50.61

-------------- next part --------------
# Do not check uid/gid and permissions
ignore uid gid mod;

nossl * *;

group distribution
{
    host skoll (horus.0140096d.rne.ac-caen.fr);
    key /var/lib/csync2/distribution.key;
    include %software%;
    exclude %software%/ib56;
    exclude *~ .*;

    action
    {
        exec "/root/horus/scripts/init_config ultravnc";
        logfile "/var/log/csync2_action.log";
    }

    auto none;
}

prefix software
{
    on skoll: /home/dad/src/utils/distribution-raip;
    on *:     /home/workgroups/partage/applis/install;
}


More information about the Csync2 mailing list