Fwd: simple return array from other "code"

2010-04-25 Thread Jakub Viták
Hi. I am novice to cfengine and I am trying to understand how it works. I understand some classes defined "flow", but I would like to know howto generate slist from command - shell script or even some agent class. Something like this: vars: "my_list" slist = generate_somwhere_else(); repor

Fwd: Re: simple return array from other "code"

2010-04-27 Thread Jakub Viták
Hi again. If anyone have a little free time, I will be very grateful if give few tips about functions. Thank you, Jakub V. Original Message Subject:Re: simple return array from other "code" Date: Mon, 26 Apr 2010 08:03:55 +0200 From: Jakub Viták To:

Re: simple return array from other "code"

2010-04-30 Thread Jakub Viták
Thank you Nakarin .. a lot! On 04/30/2010 11:54 AM, Nakarin Phooripoom wrote: > I'm afraid you can't make functions (like a normal programming does) in > cfengine. > > To get closed to your expectation, you might need to create global variables > (bundle common) of the outputs of your commands/s

Re: Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread Jakub Viták
Hi. I am also novice to Cfengine. I am not sure how are classes handled precisely. I know there is "reset class" (or something - sorry, not daily user yet), which could cause "running" some promises. Se there could be something similar like if-else with this method. My question is - every ti

Re: Cfengine Help: Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread Jakub Viták
Thank you Neil. That's exactly what I wanted to know. > The agent goes through the policy three times before exiting. Is this "three times" enough to satisfy all cases? Sincerely, Jakub V. p.s.: I read your articles and have printed your tutor - thank you for excelent job! On 09/24/2010 0

Re: Cfengine Help: Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread Jakub Viták
OK. And is there any method how to find out (debug) that I have exceed this number, or could I alter it by command option or with config definiton? J. On 09/24/2010 04:43 PM, Jesse Becker wrote: > On Fri, Sep 24, 2010 at 10:40:11AM -0400, Jakub Vit?k wrote: >> Thank you Neil. >> >> That's ex

Re: Cfengine Help: Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread Jakub Viták
OK. I will not and I am satisfied. Thank you Neil :) Jakub V. On 09/24/2010 05:23 PM, no-re...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Re: Quickstart guide? [learning more about Cfengine classes] > Author: neilhwatson > Link to topic: https://cfengine.com/forum/read.php?3,18464,

Re: Cfengine Help: Re: Understanding how to use methods / bundles

2010-10-01 Thread Jakub Viták
Hi. Maybe some tutorial or starter should help. I would like to use cf-know and the "best practice" article on this topic I would certainly appreciate. Regards, Jakub Vitak On 09/30/2010 11:05 PM, no-re...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Re: Understanding how to use met

Re: OT (maybe) how to detect virtual machines

2010-10-14 Thread Jakub Viták
Hi. When I saw the article I had very crazy idea. You could write promise which will set Virtual class - or report directly - if it detects on of those files or any other "symptoms". This is only for fun ;-) Jakub V. On 10/14/2010 01:50 PM, Davide Brini wrote: > http://serverfault.com/quest

Re: OT (maybe) how to detect virtual machines

2010-10-14 Thread Jakub Viták
Sorry guys. I need to reed all posts fully (and maybe more times) before any response. > Right now I have a self maintained class virtual where -- J. On 10/14/2010 02:07 PM, Jakub Viták wrote: > Hi. > > When I saw the article I had very crazy idea. > > You could write

Re: Cfengine Help: Cfengine minimal configuraton example

2010-10-14 Thread Jakub Viták
Hi. This was recently in ML. http://github.com/megamic/cfengine3-boilerplate Try it and let us know if it is worth of it ;-) Jakub V. On 10/14/2010 05:11 PM, no-re...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Cfengine minimal configuraton example > Author: sakis > Link to topic: