Hi,
I would like to have a variable assignment happen after the execution of
one file promise, before a second one happens. I'm finding this
difficult, as I can't see a way to set a class depending on a variable
promise, which would seem to be the obvious way. To illustrate with the
code I'm t
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
I want to have a bundle that creates system user accounts, and adds a
list of authorised ssh keys to those accounts. So, what I have is:-
bundle agent do_config
{
vars:
"users[www-user][gecos]" string => "Web server user";
"users[www-user][home]"string => "/var/lib/www";
"u
On 06/03/12 13:43, no-re...@cfengine.com wrote:
>
> Package managers can act in unexpected and unwanted ways. Look at the
> verbose output of the agent to see what is going on.
>
I've been through the verbose output at some length - the package
manager seems to be doing exactly what it's suppo
Hi,
I have a cfengine config that's not quite doing what I expect. I have a
bundle that's set to install certain packages, and then adds some config
files based on what's been installed. Slightly paraphrasing, the config
I have looks like this:-
packages:
any::
"$(base_lis
On 05/09/11 17:51, no-re...@cfengine.com wrote:
> Are you using a new version of Cfengine? I seem to recall having
> some issues with the CF_NULL entry in slists not always getting
> purged in older (as in, prior to 3.1.5) releases.
I'm using 3.1.5.
> So instead of
> skipping an empty element i
Hi,
I'm using a set of promised to guarantee some magic words are poked into
pseudo-files under /sys on linux. The following construct generates an
error message (cosmetic only, but still annoying) when there are no
disks found:-
vars:
"vdisklist" string => execresult("", "noshell");