Hello,
I'm happy to see that we can use included vars since svn 990[1], one
thing remains, this is sensible to inputs ordering, the following
example will not work and should be documented.
I looked at docs/cf3-Reference.texinfo and docs/cf3-reference.html but
they are not up to date with the on
Forum: Cfengine Help
Subject: Re: Setting perms on home directory files
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,17127,17139#msg-17139
I think you can use the readstringarray and skip the command promise
altogether. Use the skip regex, that now skips comment lines
Forum: Cfengine Help
Subject: Re: Setting perms on home directory files
Author: RIngersoll
Link to topic: https://cfengine.com/forum/read.php?3,17127,17138#msg-17138
Here's what I have so far:
body common control
{
bundlesequence => {
"test"
Forum: Cfengine Help
Subject: Re: cf3 commands error
Author: RIngersoll
Link to topic: https://cfengine.com/forum/read.php?3,17135,17137#msg-17137
A, that explains some things...
Thanks!
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
htt
Forum: Cfengine Help
Subject: Re: cf3 commands error
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,17135,17136#msg-17136
Suppose to be like the following;
bundle agent test
{
commands:
"/bin/grep admin /etc/passwd >/tmp/passwd.txt"
-- contain => "shell";
++ co
Forum: Cfengine Help
Subject: cf3 commands error
Author: RIngersoll
Link to topic: https://cfengine.com/forum/read.php?3,17135,17135#msg-17135
I've been banging my head trying to get a simple command to execute:
body common control
{
bundlesequence => {
"test"
Hi List
I'm using the "unit_copy_edit.cf" example from the units/ directory to
perform convergent copying and editing of configuration files to a cf-agent
host.
My unit_copy_edit copies template config files, creates staging files and
then should generate final configurations, but instead it dies
Сева Глущенко écrit :
>
> at the first glance it looks like getting installed packages can be
> simplified a bit:
>
> bundle agent packages
> {
> vars:
> "pkg_list" string => execresult("/usr/bin/dpkg -l | /usr/bin/awk
> '/^ii/ {print $2}'", "useshell");
> "installed" string => splitst