Re: cfengine error during fai-based install

2006-06-08 Thread Michael Tautschnig
> Hallo Michael!
> 
> Yes, im sure squid is successful installed include running the postinst
> script.
> The Part which I did not posted works successful with cfengine. 
> I replace strings in the squid.conf with ReplaceAll. Like:
> ReplaceAll "^\# http\_port 3128" With "http_port 8080"
>
What about some script that runs before your first cfengine attempt and backups
/etc/squid/squid.conf somewhere such that you can later try to run cfengine
manually on the backuped version?

> In the last days i try to setup cgengine2 to resolve the problem. but
> cfengine2 wont not successful install with fai or after the first
> reboot. i use this to install cfengine correctly, but not beautiful but
> works:
> apt-get install cfengine2
> agt-get remove cfengine2
> apt-get install cfengine2 <- now dpkg starts to configure cfengine !
> 

Which version of cfengine2 are you trying to install (stable/testing/unstable)?
What is the exact error message?

Regards,
Michael



signature.asc
Description: Digital signature


Re: cfengine error during fai-based install

2006-06-07 Thread Michael Tautschnig
Hi Martin,

AFAIK nobody has replied to your post to date - sorry...

> i a newbie in debian, fai and cfengine (formely suse, without wonderful fai 
> and cfengine) and need now some hint to resolve this problem.
> 
[...]
> 
> Whats wrong ???
> 
> Install anyone cfengine2 with fai? the pre or post config-script gets an 
> sed-editor error and the debconf settings will not correct apply.
>

If got no idea about cfengine2, but it should AFAIK work. However, personally 
I'd suggest
you simply use sed/perl instead of cfengine...

But back to your question: Are you sure, squid has been installed and configured
completely before your cfengine script is run for the first time? Note, that
/etc/squid/squid.conf is copied by squid's postinst script and thus it might
have been completely missing upon the first attempt to run cfengine!?

Just a wild guess,
Michael



signature.asc
Description: Digital signature


Re: cfengine and variable

2006-03-29 Thread Cedric BRINER
> > >
> > >directories:
> > >   any::
> > >   /root/qq mode=0700 owner=0 group=0
> > >   ${target}/root/ww mode=0700 owner=0 group=0
> > > 
> > > if you do not an export target='' before.
> > > 
> > > not workunset target=''; /usr/sbin/fai softupdate
> > > workexport target=''; /usr/sbin/fai softupdate 
> > > 
> > > 
> > > does some of you has already experiment such situation ?
> > > 
> > > Ced.
> > 
> > Sorry I've forgot to say that both of them (with/without target setted) the
> > cfengine script doesn't work when launched through /usr/sbin/fai softupdate
> > 
> 
> This is probably the same problem as reported here:
> 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=310746
> 
> Maybe cfengine2 solves this issue!?
not maybe it is !!!

thank you

Ced.
P.-S. I've learned that the bugreport can also give information on how to solve 
the bug


> Regards,
> Michael




-- 

Cedric BRINER
Geneva - Switzerland


Re: cfengine and variable

2006-03-29 Thread Michael Tautschnig
[...]
> >
> >directories:
> >   any::
> > /root/qq mode=0700 owner=0 group=0
> > ${target}/root/ww mode=0700 owner=0 group=0
> > 
> > if you do not an export target='' before.
> > 
> > not workunset target=''; /usr/sbin/fai softupdate
> > workexport target=''; /usr/sbin/fai softupdate 
> > 
> > 
> > does some of you has already experiment such situation ?
> > 
> > Ced.
> 
> Sorry I've forgot to say that both of them (with/without target setted) the
> cfengine script doesn't work when launched through /usr/sbin/fai softupdate
> 

This is probably the same problem as reported here:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=310746

Maybe cfengine2 solves this issue!?

Regards,
Michael



signature.asc
Description: Digital signature


Re: cfengine and variable

2006-03-29 Thread Cedric BRINER
> hello,
> 
> I was knocking my head against a wall with cfengine script in general.
> 
> when I realize that this cfengine script is not working 
>#! /usr/bin/cfengine
>
>control:
>   OutputPrefix = ("cfengine")
>   actionsequence = ( files directories editfiles )
>   EditFileSize = ( 3 )
>
>files:
>   any::
>
>directories:
>   any::
>   /root/qq mode=0700 owner=0 group=0
>   ${target}/root/ww mode=0700 owner=0 group=0
> 
> if you do not an export target='' before.
> 
> not workunset target=''; /usr/sbin/fai softupdate
> workexport target=''; /usr/sbin/fai softupdate 
> 
> 
> does some of you has already experiment such situation ?
> 
> Ced.

Sorry I've forgot to say that both of them (with/without target setted) the
cfengine script doesn't work when launched through /usr/sbin/fai softupdate




-- 

Cedric BRINER
Geneva - Switzerland


Re: cfengine

2005-03-05 Thread Rudy Gevaert
Hi,

On Saturday 05 March 2005 23:36, you wrote:
> > Hello,
> >
> > After installing a computer with FAI I see that cfengine is also
> > installed.
> >
> > I want now to use cfengine.  I gather I can copy over the cfengine
> > config files and everything will work?  Or are there some build in
> > functions in FAI?
>
> you can look at the script file
> /usr/share/doc/fai/examples/simple/scripts/DEFAULT/S20 for example.

But, if I'm correct these scripts only get executed when installed.
They aren't run periodically, right?


> And, sure, the cfengine documentation which is quite verbose, be sure not
> to get lost :)

Thanks, although it's hard not to get lost ;)

Rudy



Re: cfengine

2005-03-05 Thread Henning Sprang
> Hello,
> 
> After installing a computer with FAI I see that cfengine is also
> installed.
> 
> I want now to use cfengine.  I gather I can copy over the cfengine
> config files and everything will work?  Or are there some build in
> functions in FAI?

you can look at the script file
/usr/share/doc/fai/examples/simple/scripts/DEFAULT/S20 for example.

And, sure, the cfengine documentation which is quite verbose, be sure not to
get lost :)

Henning