Ok, so I finally figure out how to accomplish my goal. It doesn't have
to do with splitting a blank line, but rather where I do the work. I
just needed to move the split and "blank" class creation into the
edit_line bundles. I can probably modularize it with usebundle, but at
least I finally figure
Try creating an any:: version of the variable first and make that one
overridable.
-Original Message-
From: help-cfengine-boun...@cfengine.org
[mailto:help-cfengine-boun...@cfengine.org] On Behalf Of nwat...@symcor.com
Sent: Friday, March 12, 2010 11:26 AM
To: Matt Richards
Cc: help-cfen
Use "overridable" on the default "services" variable. For example:
vars:
any::
"services" slist => { ... },
policy => "overridable";
redhat::
"services" slist => { "telnet", ... };
etc.
Does that help?
Justin
-Original Message-
From: help-cfengine-
Overridable helps provided that this is set for all instances of the
variable. Example:
5 bundle agent report_services{
6
7 vars:
8
9 redhat::
10 # List this variable first as the default.
11 "services" slist => {
12
Does using policy=>"overridable" help? I had a similar issue with duplicate
value with upgrading to cf4:
> Vars:
> 8
> 9 redhat::
>10 # List this variable first as the default.
>11 "services" slist => {
>12 "anacron",
>13
This is a new error message in 3.0.4
cf-promises -f ./promises.cf
!! Redefinition of a constant variable "services"
Promise (version not specified) belongs to bundle 'report_services' in
file './services.cf' near line 38
!! Redefinition of a constant variable "services"
Promise (version not sp
Here's a simpler case that also doesn't work the way that the
insert_select feature intuitively sounds like it should work. The
following example inserts all three lines in the created file, not just
the two that would be inserted if the insert_if_match_from_list
restricted insertions to lines that
Can someone tell me if I'm missing something? I noticed that I could try
to prevent lines from being added with no netgroup name by using an
insert_select body with the insert_if_match_from_list parameter.
However, the documentation regarding this and related parameters is very
confusing:
http://
Hi Frederic,
This indeed looks like the problem.
I will upgrade to the latest version of Cfengine to check if that fixes the
problem.
Thanks for your help.
Regards,
Patrick
-Original message-
From: lefollfr
Sent: Fri 12-03-2010 15:20
To: Patrick de Ruiter ;
CC: help-c
Patrick,
Another try :
2010/3/12 Patrick de Ruiter :
> Unfortunatly I do not have depth_search_recurse defined anywhere.
Do you have a variable called recurse ? There used to be a conflict
between variable names and bodies names in 3.0.3. In that case,
Eystein's sugestion to upgrade to 3.0.4 is
It is passed as a parameter.
bundle agent run_bundle(bundle_name) {
On Mar 12, 2010, at 8:57 AM, nwat...@symcor.com wrote:
> help-cfengine-boun...@cfengine.org wrote on 2010-03-12 08:54:28
>>
>> % cf-agent -K
>> Undeclared promise bundle "$(bundle_name)()" was referenced in a promise
>
> Is bu
help-cfengine-boun...@cfengine.org wrote on 2010-03-12 08:54:28
>
> % cf-agent -K
> Undeclared promise bundle "$(bundle_name)()" was referenced in a promise
Is bundle_name defined? From the example it looks like an empty variable.
Sincerely,
--
Neil Watson
416-673-3465
CONFIDENTIALITY WARNIN
Greetings:
This is invalid? I suppose it should be, it is a little nutty:
bundle agent run_bundle(bundle_name) {
methods:
"any" usebundle => "$(bundle_name)",
comment => "run bundle $(bundle_name)";
}
% cf-agent -K
Undeclared promise bundle "$(bundle_name)()"
Hello all,
I took the following from the documentation hoping to use it for a task that I
would like to implement:
"dim_array" int => readstringarray("define_users","/etc/passwd"," #[^\n]*
",":",10,4000);
Tried it and it worked well i.e. it read 10 entries of the passwd files. So I
went ahe
Hi Frederic,
Unfortunatly I do not have depth_search_recurse defined anywhere.
I circumvented the error by disabling both promises in the cfengine_stdlib.cf
file.
Thanks,
Patrick
-Original message-
From: lefollfr
Sent: Fri 12-03-2010 13:06
To: Patrick de Ruiter ;
CC: help
Hello Patrick,
2010/3/12 Patrick de Ruiter :
> Hi Guys,
>
> I've added the open promise library to my cfengine 3 configuration, but now
> I keep getting the following error's
Don't have simply have your own "body depth_search recurse" already
defined in your files ?
> [r...@cf3-test-vh01 inputs]
You might be using an older version of Cfengine that does not support
the syntax elements used in the current standard library.
Try upgrading to 3.0.4.
Good luck with the first steps!
--
Regards,
Eystein
On Fri, Mar 12, 2010 at 12:52 PM, Patrick de Ruiter
wrote:
> Hi Guys,
>
>
>
> I've added th
Hi Guys,
I've added the open promise library to my cfengine 3 configuration, but now I
keep getting the following error's
[r...@cf3-test-vh01 inputs]# cf-agent -I -K
cf3:/var/cfengine/inputs/stdlib.cf:708,1: Redefinition of body recurse for
depth_search is a broken promise, near token '{
18 matches
Mail list logo