Now it works. Some time ago I changed 

34   "/var/cfengine/bin"
 35
 36     comment     => "*** Updating files in '/var/cfengine/bin'...",
 37     perms => u_p("700"),
 38     copy_from => mycopy("/usr/local/sbin","localhost"),
....

to

34   "/var/cfengine/bin"
 35
 36     comment     => "*** Updating files in '/var/cfengine/bin'...",
 37     perms => u_p("700"),
 38     copy_from => mycopy("/usr/local/sbin","${master_host}"),
....

where "${master_host}" is the policy host. Obviously this did not work 
when ${master_host} = 'localhost' for whatever reason. But this is not the 
issue . I will find out. I just wanted to get some hints on creating 
/var/cfengine. So thanks Nicolas!

Anyone maybe some other best practices?

Regards Bernd





Nicolas Charles <charl...@gmail.com> wrote on 11.01.2010 16:40:40:

> [image removed] 
> 
> Re: Recommended way to get /var/cfengine
> 
> Nicolas Charles 
> 
> to:
> 
> bernd.adamowicz
> 
> 11.01.2010 16:40
> 
> Cc:
> 
> help-cfengine
> 
> My mistakes, the path of the files to be copied is wrong, and it does 
> not create the keys, but create the bins.
> 
> nicolas:/var/#mv cfengine/ cfengine.bak/
> nicolas:/var/#mkdir -p /var/cfengine/masterfiles
> nicolas:/var/#cp /usr/local/share/doc/cfengine/inputs/*.cf 
> /var/cfengine/masterfiles
> nicolas:/var/#cd /var/cfengine/masterfiles
> nicolas:/var/cfengine/masterfiles/# /usr/local/sbin/cf-agent --bootstrap
> nicolas:/var/cfengine/masterfiles/#cd ../bin
> nicolas:/var/cfengine/bin/# ./cf-agent -V
> This comprises cf-agent core community version 3.0.3 - (C) Cfengine AS 
2008-
> 
> 
> 
> 
> bernd.adamow...@external.icw-global.com wrote:
> >
> > Hi Nicolas,
> >
> > I cannot repoduce this. 'cf-agent --bootstrap' neither copies the 
> > binaries nor creates any keys. Both still has to be done manually.
> >
> > Regards
> > Bernd
> >
> >
> >
> >
> >
> >
> > Nicolas Charles <charl...@gmail.com> wrote on 11.01.2010 15:54:07:
> >
> > > [image removed]
> > >
> > > Re: Recommended way to get /var/cfengine
> > >
> > > Nicolas Charles
> > >
> > > to:
> > >
> > > bernd.adamowicz
> > >
> > > 11.01.2010 15:54
> > >
> > > Cc:
> > >
> > > help-cfengine
> > >
> > > bernd.adamow...@external.icw-global.com wrote:
> > > >
> > > > While (re-)installing 3.0.3 Community I was wondering once again 
> > which
> > > > is the correct way to get the working directory /var/cfengine.
> > > > Obviously it is not created when issuing 'make install' as root. 
But
> > > > when executing 'cf-execd' the first time, the initial structure is
> > > > created. However, there are still the binaries missing below
> > > > /var/cfengine/bin which I then copied manually. And after making 
some
> > > > further changes (e.g. 'chmod 700 ppkeys') one gets a valid working
> > > > directory for Cfengine.
> > > >
> > > > But is this the intended way? How do others handle that?
> > > >
> > > > Thanks Bernd
> > >
> > >
> > > Hi Bernd,
> > >
> > > What I do after a make install is :
> > >
> > > % mkdir -p /var/cfengine/masterfiles
> > > % cp /usr/local/share/cfengine/*.cf /var/cfengine/masterfiles
> > > % cd /var/cfengine/masterfiles
> > > % /usr/local/sbin/cf-agent --bootstrap
> > >
> > >
> > > The bootstrap copy all the necessary and creates the keys.
> > >
> > > Regards,
> > > Nicolas
> >
> > InterComponentWare AG:
> > Vorstand: Peter Kirschbauer (Vors.), Jörg Stadler / 
> > Aufsichtsratsvors.: Prof. Dr. Christof Hettich
> > Firmensitz: 69190 Walldorf, Industriestraße 41 / AG Mannheim HRB 
> > 351761 / USt.-IdNr.: DE 198388516
> > 
------------------------------------------------------------------------
> >
> > _______________________________________________
> > Help-cfengine mailing list
> > Help-cfengine@cfengine.org
> > https://cfengine.org/mailman/listinfo/help-cfengine
> > 
> 



InterComponentWare AG:  
Vorstand: Peter Kirschbauer (Vors.), Jörg Stadler / Aufsichtsratsvors.: Prof. 
Dr. Christof Hettich  
Firmensitz: 69190 Walldorf, Industriestraße 41 / AG Mannheim HRB 351761 / 
USt.-IdNr.: DE 198388516  
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to