Forum: CFEngine Help
Subject: Re: It is possible to uses a slist variable in the inputs directive ?
Author: davidlee
Link to topic: https://cfengine.com/forum/read.php?3,26281,26299#msg-26299
Where, please, does the ref. manual describe this quoting/non-quoting?
I get the feeling that $(foo) has
Thanks for the help - I've ended up taking bits from both solutions.
I'm now calling the method bundle once per user account to add, which
allows me to pass in the slist of keys to add. Pulling the keys into
variables with readfile has made life easier in controlling the final
output.
Thanks f
Forum: CFEngine Help
Subject: Re: CFEngine Help: Templating the solution?
Author: tjavo87
Link to topic: https://cfengine.com/forum/read.php?3,26068,26301#msg-26301
Hi,
I'm now working with methods but encounter a problem. I've a bundle named all
that needs to run on every system. The files are
Hi all
OK, I admit this must be *dumb*, but I cannot get out of this...
Suppose I have an array of lists:
"array[key1]" slist => { ... } ;
"array[key2]" slist => { ... } ;
. . .
"array[keyN]" slist => { ... } ;
and suppose that $(selector) contains one of the keys. Given that, I'd
like to expa
On 06/25/2012 09:10 AM, Marco Marongiu wrote:
> Hi all
>
> OK, I admit this must be *dumb*, but I cannot get out of this...
>
> Suppose I have an array of lists:
>
> "array[key1]" slist => { ... } ;
> "array[key2]" slist => { ... } ;
> . . .
> "array[keyN]" slist => { ... } ;
>
>
> and suppose that
Here it is inline for the archives.
body common control {
bundlesequence => {
"main",
};
inputs => {
"cfengine_stdlib.cf",
};
}
bundle agent main {
vars:
"array[key1]" slist => {"array1_key1_item1", "array1_key1_item2"};
"array[key2]" slist => {"array1_key2_item1", "array1_key2_item2
On Sat, 23 Jun 2012 19:34:36 +0200 (CEST) davidlee wrote:
n> As it was, the "$(key)_in_file" was OK for a single call, but could fail
when called on different files with the same key.
n> The revised version "$(key)_in_$(file)" allows multiple calls for the same
key on different files; it adds
Forum: CFEngine Help
Subject: Re: renicing a process
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,25092,26307#msg-26307
One wonder if the C setpriority function might be used the by cf-agent in a new
nicing feature.
___
Help
Forum: CFEngine Help
Subject: Re: Templating the solution?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,26068,26308#msg-26308
Verbose output can be misleading. What you see may not be an error. What is
the exit status of the agent? Are promises in the bundle evaluat
Thanks Nick
I actually discovered that there was a dumb, but it was not the
question: it was me :)
Due to a well hidden bug in my code, the list expansion appeared not to
be working. It took me some time, some runs of cf-agent -v, and an
incremental set of changes in a bundle, to discover that th
On 06/25/2012 12:50 PM, Marco Marongiu wrote:
> Summing up, the right way to expand a slist contained in an array
> element is actually:
>
> "list" slist => { "@(array[$(selector)])" } ;
>
> However, if you plan to use list as a parameter for a bundle, you'd
> better prefix the list expansion with
On 25/06/12 19:56, Nick Anderson wrote:
> On 06/25/2012 12:50 PM, Marco Marongiu wrote:
>> Summing up, the right way to expand a slist contained in an array
>> element is actually:
>>
>> "list" slist => { "@(array[$(selector)])" } ;
>>
>> However, if you plan to use list as a parameter for a bundle
Apologies, I spotted a few mistakes here:
> I am preparing a policy to create authorized_keys files on a set of
> server.
read "servers"
> Depending on which classes a server is in, it must get a
> different set of keys in its authorized_keys file. I organized my stuff
> this way:
>
> I have an
On Mon, Jun 25, 2012 at 12:55 AM, wrote:
> Forum: CFEngine Help
> Subject: Re: It is possible to uses a slist variable in the inputs directive ?
> Author: davidlee
> Link to topic: https://cfengine.com/forum/read.php?3,26281,26299#msg-26299
>
> Where, please, does the ref. manual describe this qu
I'd love to be able to make promises about certain processes running nicely.
I could use that in production today. Right now I have a shell script
monitoring
this case. I'd love to be able to use CFEngine to take care of it.
I've opened a feature request ticket:
https://cfengine.com/bugtracker/
Forum: CFEngine Help
Subject: Re: Templating the solution?
Author: tjavo87
Link to topic: https://cfengine.com/forum/read.php?3,26068,26316#msg-26316
Hi,
The exit status when running the cf-agent is 0. Promises in the bundles are not
evaluated. Only the input files
are parsed.
Regards,
neilhwa
Forum: CFEngine Help
Subject: Re: Templating the solution?
Author: tjavo87
Link to topic: https://cfengine.com/forum/read.php?3,26068,26315#msg-26315
Hi,
The exit status is 0 when running the cf-agent. Prromises in the bundle are not
evaluated. Only the input files
are parsed.
neilhwatson Wro
Forum: CFEngine Help
Subject: Re: Templating the solution?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,26068,26304#msg-26304
Does the agent actually return an error status? Does the all_garbage bundle
get executed? Verbose agent output can be very confusing. Most o
18 matches
Mail list logo