Re: CFEngine Help: Re: Finding the current user running cf-agent

2011-11-17 Thread Matthieu CERDA
The -10/01/-28163 20:59, no-re...@cfengine.com wrote : > Forum: CFEngine Help > Subject: Re: Finding the current user running cf-agent > Author: zzamboni > Link to topic: https://cfengine.com/forum/read.php?3,23960,23966#msg-23966 > > Mike, you are correct, this works fine. > > Yep, that seems lik

Re: CFEngine Help: Cfengine chatroom at SILC

2011-11-17 Thread Jesse Becker
On Wed, Nov 02, 2011 at 09:46:03AM -0400, no-re...@cfengine.com wrote: >Forum: CFEngine Help >Subject: Cfengine chatroom at SILC >Author: neilhwatson >Link to topic: https://cfengine.com/forum/read.php?3,23875,23875#msg-23875 > >Would anyone be interested in Cfengine chat room? I created a cfengin

cf-agent run time limit (hanging during package installation)

2011-11-17 Thread Marco Marongiu
Hi all A policy file of mine is supposed to configure ntp on the systems. Unfortunately, aptitude/dpkg hang requiring keyboard input, and cf-agent hangs on them. I've been searching for a way to timeout cf-agent on package installations, with no luck. But I am sure there *must* be a way... Any s

CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread no-reply
Forum: CFEngine Help Subject: Re: cf-agent run time limit (hanging during package installation) Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,23975,23976#msg-23976 http://cfengine.com/manuals/cf3-reference.html#expireafter-in-agent There is a body in COPBL already. ___

Re: CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread Marco Marongiu
Il 17/11/2011 15:17, no-re...@cfengine.com ha scritto: > http://cfengine.com/manuals/cf3-reference.html#expireafter-in-agent > > There is a body in COPBL already. Oh, thanks so much Neil!!! I've looked for "hang", "abort" and all possible synonyms, but of course I missed on "expire" :( Ciao --

putting cfengine mailing list on Gmane?

2011-11-17 Thread Ted Zlatanov
Could we copy the cfengine mailing list posts to Gmane? All that's required is approval from the list owners, plus subscribing an e-mail address if the default subscription process doesn't work. Please see: http://gmane.org/subscribe.php http://gmane.org/about.php That would let anyone read th

Re: CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread Marco Marongiu
Il 17/11/2011 15:25, Marco Marongiu ha scritto: > Oh, thanks so much Neil!!! > > I've looked for "hang", "abort" and all possible synonyms, but of course > I missed on "expire" :( Unfortunately, it doesn't work :( I altered the "body agent control" in promises.cf, adding an "expireafter => 1", b

Re: CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread Mark Burgess
On 11/17/2011 04:01 PM, Marco Marongiu wrote: > Il 17/11/2011 15:25, Marco Marongiu ha scritto: >> Oh, thanks so much Neil!!! >> >> I've looked for "hang", "abort" and all possible synonyms, but of course >> I missed on "expire" :( > Unfortunately, it doesn't work :( > > I altered the "body agent c

Re: CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread Marco Marongiu
Il 17/11/2011 16:05, Mark Burgess ha scritto: > If you have an interactive program waiting for input, then CFEngine's > batch approach is not really compatible. You probably need to run > the programs in non-interactive mode, and maybe close any input > channels < /dev/null. Wait... so we are acc

CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread no-reply
Forum: CFEngine Help Subject: Re: cf-agent run time limit (hanging during package installation) Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,23975,23983#msg-23983 Run your promise in verbose mode and see what Cf is telling apt or aptitude to do. Package promises are v

Re: CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread Mark Burgess
On 11/17/2011 04:09 PM, Marco Marongiu wrote: > Il 17/11/2011 16:05, Mark Burgess ha scritto: >> If you have an interactive program waiting for input, then CFEngine's >> batch approach is not really compatible. You probably need to run >> the programs in non-interactive mode, and maybe close any

Re: CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread Marco Marongiu
Il 17/11/2011 16:22, no-re...@cfengine.com ha scritto: > Run your promise in verbose mode and see what Cf is telling apt or > aptitude to do. Package promises are very tricky and Cfengine is not > really to blame. Many package managers do not behave as expected. I'm already doing that. aptitude,

Re: CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread Nick Anderson
>> Il 17/11/2011 16:05, Mark Burgess ha scritto: >>> If you have an interactive program waiting for input, then CFEngine's >>> batch approach is not really compatible. You probably need to run >>> the programs in non-interactive mode, and maybe close any input >>> channels< /dev/null. >> Wait...

Re: CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread Nick Anderson
On 11/17/2011 09:31 AM, Marco Marongiu wrote: > I can, of course, circumvent this specific behaviour, and I know that > package managers may not be well suited for non interactive actions. > Still, I find that cf-agent not being able to bail out of such a > situation is kind of a bug. And a bad on

Re: CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread Mark Burgess
On 11/17/2011 04:31 PM, Marco Marongiu wrote: > Il 17/11/2011 16:22, no-re...@cfengine.com ha scritto: >> Run your promise in verbose mode and see what Cf is telling apt or >> aptitude to do. Package promises are very tricky and Cfengine is not >> really to blame. Many package managers do not beh

Re: CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread Mark Burgess
On 11/17/2011 04:35 PM, Nick Anderson wrote: > On 11/17/2011 09:31 AM, Marco Marongiu wrote: > >> I can, of course, circumvent this specific behaviour, and I know that >> package managers may not be well suited for non interactive actions. >> Still, I find that cf-agent not being able to bail out o

Re: CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread Marco Marongiu
Il 17/11/2011 16:32, Nick Anderson ha scritto: > You probably need something like this. > > body agent control { > # This is needed for packages that want some configuration like > # postfix. > environment => { "DEBIAN_FRONTEND=noninteractive" }; > } > > It's there already: debian

Re: CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread Marco Marongiu
Il 17/11/2011 16:35, Mark Burgess ha scritto: > body agent control > { > environment => { "DEBIAN_FRONTEND=noninteractive", "LANG=C" }; > } As said, neither expireafter nor this is working for me, and I seem to be not the only one having this kind of trouble: https://cfengine.com/bugtracker/view

Re: CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread Mark Burgess
On 11/17/2011 04:42 PM, Marco Marongiu wrote: > Il 17/11/2011 16:35, Mark Burgess ha scritto: >> body agent control >> { >> environment => { "DEBIAN_FRONTEND=noninteractive", "LANG=C" }; >> } > As said, neither expireafter nor this is working for me, and I seem to > be not the only one having thi

Re: CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread Marco Marongiu
Il 17/11/2011 16:55, Mark Burgess ha scritto: > You can try this and report on that bug tracker > whether it works for you...? it doesn't. I guess the variable setting with env is not exported by apt-get to the dpkg subprocess. It is still hanging on user input. For the record, this is how my bu

Re: CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread Marco Marongiu
This works: > body package_method aptget > { > package_changes => "bulk"; > package_list_command => "/usr/bin/dpkg -l"; > package_list_name_regex=> "ii\s+([^\s]+).*"; > package_list_version_regex => "ii\s+[^\s]+\s+([^\s]+).*"; > package_installed_regex => ".*"; # all reported are installed >

CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread no-reply
Forum: CFEngine Help Subject: Re: cf-agent run time limit (hanging during package installation) Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,23975,23997#msg-23997 That assumes you want to keep the old configuration file rather than the new one (--force-confew). See dp

Re: CFEngine Help: Re: cf-agent run time limit (hanging during package installation)

2011-11-17 Thread Marco Marongiu
Il 17/11/2011 17:35, no-re...@cfengine.com ha scritto: > That assumes you want to keep the old configuration file rather than > the new one (--force-confew). See dpkg man file under > --force-things. It does, because I assume that the configuration is taken care of by cfengine. Of course I could

CFEngine Help: Re: Cfengine isn't discovering all of your Solaris packages? This is why.

2011-11-17 Thread no-reply
Forum: CFEngine Help Subject: Re: Cfengine isn't discovering all of your Solaris packages? This is why. Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,23948,23999#msg-23999 Thanks Mike for posting this. I have checked in the fix into the COPBL svn repository.

Re: cannot use cfengine3 mode in Emacs 23

2011-11-17 Thread Marco Marongiu
Il 17/11/2011 15:45, Ted Zlatanov ha scritto: > this is because I only tested against Emacs 24, I didn't know prog-mode > was not available in earlier ones. I will make the necessary changes. Thanks a lot!!! Ciao -- bronto ___ Help-cfengine mailing li

CFEngine Help: Re: putting cfengine mailing list on Gmane?

2011-11-17 Thread no-reply
Forum: CFEngine Help Subject: Re: putting cfengine mailing list on Gmane? Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,23979,24001#msg-24001 Ted, The list had already been added to gmane: http://dir.gmane.org/gmane.comp.sysutils.cfengine.general However for some reason