Forum: Cfengine Help
Subject: Re: question on replace_patterns and insert_lines
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,22198,22207#msg-22207
Completely agree. To me the hardest thing about cfengine has been to grasp its
declarative nature, since I hadn't had much ex
Forum: Cfengine Help
Subject: Re: question on replace_patterns and insert_lines
Author: debheller
Link to topic: https://cfengine.com/forum/read.php?3,22198,22206#msg-22206
The methodology that Diego is describing is crucial to understanding Cfengine
promise writing. You can look at it that set
Forum: Cfengine Help
Subject: Re: question on replace_patterns and insert_lines
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,22198,22205#msg-22205
Jim,
The problem is that according to normal ordering, insert_lines runs *before*
replace_patterns:
http://www.cfengine.org
Hi, Scott. Can you show us your Cfengine policy version of this script?
What your script is trying to accomplish? What does the ideal system
look like? In other words, what is the desired end state of the
system? Then instead of having Cfengine run your shell script as a
commands type promise, w
2011/5/22 Andrey Bondarenko :
>
> All three cfengine installations were on a single node in different
> users.
>
> I'm not an admin of the hosts and I don't have root account there.
> Applications I need to manage are deployed in non-priviledged users
> in some cases more than one application deplo
Forum: Cfengine Help
Subject: Re: Core dump in cf-agent vars.c:308
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,22200,22202#msg-22202
Your promises could shed some light on that coredump, but I suspect possible
call of a function from a function which already cause
Forum: Cfengine Help
Subject: Re: RE: Lengthy in-line bash commands
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,22195,22201#msg-22201
Scott,
Please preferably post a self-contained example of cfengine code that you are
trying, including the errors that you get. I think
Forum: Cfengine Help
Subject: Core dump in cf-agent vars.c:308
Author: mvpel
Link to topic: https://cfengine.com/forum/read.php?3,22200,22200#msg-22200
As I was muddling through the bootstrap of my new cfengine 3.1.5 build:
sudo /usr/local/sbin/cf-agent --bootstrap
cf-promises needs to be install
Here is a sample of the bash script I am porting. CFengine does not like the
syntax of using the conditional statements (which I have replaced through
classes), but I need to be able to check things in and out of cvs and cd into
that directory so that I can build the files correctly. My goal w
Noticed that I get duplicate lines when cfengine is applying the promise of
replace_patterns and insert_lines.
For example, the line exists in a file but is incorrect. It appears that
replace_patterns corrects the entry, but insert_lines also inserts the entry as
well. Without having to go thr
Give us more to work with: Provide an example of a "lengthy piece"
that you want cf3 to execute; what did your command promise look like
and what was the error message etc.
- Erlend
On 23 May 2011 16:25, Scott Dobner wrote:
> Hi,
> I am porting some bash scripts into cfengine and am having troub
Daniel Dehennin writes:
> Daniel Dehennin writes:
>
>> Aleksey Tsalolikhin writes:
>>
>>> I moved the classes promise higher, before the vars promise,
>>> (which is how it is evaluated anyway), but I get:
>>>
>>> Can't stat file "./@(g.country)" for parsing
>>
>> I remember something about this
Hi,
I am porting some bash scripts into cfengine and am having trouble with some
lengthy pieces that I would like to execute as a command promise. However,
cfengine does not seem to agree with that. I am trying to avoid creating
individual shell scripts and would just like to run the command t
Forum: Cfengine Help
Subject: Re: ElseDefineClasses
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,22188,22194#msg-22194
Sorry, perhaps, I misread your initial question and thought you're looking for
cf3's equivalent.
___
Forum: Cfengine Help
Subject: Re: ElseDefineClasses
Author: Ztyx
Link to topic: https://cfengine.com/forum/read.php?3,22188,22193#msg-22193
Thank you ones again. Unfortunately you are refering to cfengine 3.x
documentation. I am looking for the cfengine 2.x equivalent documentation.
Regards,
Jen
Forum: Cfengine Help
Subject: Re: ElseDefineClasses
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,22188,22192#msg-22192
body classes reference
Cfengine standard library
___
Help-cfengine mailing list
Help-cfengine@cfengin
On Mon, May 23, 2011 at 2:35 PM, Mark Burgess wrote:
>
> Marin, please submit this to the bug tracker as a feature request so it
> does not get lost or overlooked.
Hi Mark,
Ticket has been logged in the bug tracker:
- https://cfengine.com/bugtracker/view.php?id=639
Regards,
Marin
>
Forum: Cfengine Help
Subject: Re: ElseDefineClasses
Author: Ztyx
Link to topic: https://cfengine.com/forum/read.php?3,22188,22190#msg-22190
Hi Seva,
Thanks for your reply. I am unable to find what you are refering to. Could you
elaborate on the chapter to look in? Or preferably a URL.
Thank you
Forum: Cfengine Help
Subject: Re: ElseDefineClasses
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,22188,22189#msg-22189
Jens,
look at body classes in the reference manual and at body classes ifelse in the
cfengine standard library.
Forum: Cfengine Help
Subject: ElseDefineClasses
Author: Ztyx
Link to topic: https://cfengine.com/forum/read.php?3,22188,22188#msg-22188
Hi,
I am looking for documentation of the "ElseDefineClasses" attribute for
"editfiles" in cfengine2. Unfortunately the documentation only seems to refer
to "D
On 05/23/2011 01:13 PM, Marin Atanasov Nikolov wrote:
>> Forum: Cfengine Help
>> Subject: Re: Hostname based classes and virtual machines in Cfengine 3
>> Author: dnaeon
>> Link to topic: https://cfengine.com/forum/read.php?3,22131,22147#msg-22147
> Hello guys,
>
> In regards to the topic below, I
Hello,
Today I've noticed something strange on my Cfengine3 systems.
Running FreeBSD with jails, Cfengine policy server is running inside a jail.
Issue appears when running cf-agent(8) on the host machine, where the
cfengine 3 policy server jails is running as well.
When the host runs cf-agent(
On Mon, May 23, 2011 at 2:13 PM, Marin Atanasov Nikolov
wrote:
>> Forum: Cfengine Help
>> Subject: Re: Hostname based classes and virtual machines in Cfengine 3
>> Author: dnaeon
>> Link to topic: https://cfengine.com/forum/read.php?3,22131,22147#msg-22147
>
> Hello guys,
>
> In regards to the top
> Forum: Cfengine Help
> Subject: Re: Hostname based classes and virtual machines in Cfengine 3
> Author: dnaeon
> Link to topic: https://cfengine.com/forum/read.php?3,22131,22147#msg-22147
Hello guys,
In regards to the topic below, I now have a patch for FreeBSD, which
excludes virtual interface
24 matches
Mail list logo