> bundle agent test
> {
> vars:
> linux::
> "all_ips" slist => { "$(sys.ipv4)","$(sys.ipv4)","$(sys.ipv4)" };
> "mngmt_ip" slist => grep("10.0.50.*","all_ips");
>
> reports:
> linux::
> "--> $(mngmt_ip)";
> }
Thanks for idea, following code works but its an ugly hack =) List of
all ip a
I need to get ipv4 address in a var to write it into config file.
There are variety of interface configurations, but all machines has ip
from subnet 10.0.50.0/24 which is management subnet. Unfortunately
this ip can be assigned to different interfaces: somewhere to eth0,
somewhere to eth1 etc...
How do you test your promises?
I've copied everyting from masterfiles into separate dir, edited few
things and then execute them using "cf-exec -v -f" but according to
output it executes things in "inputs" directory, not in my copy.
On the other hand, "cf-promises -f" works fine, at least it catc
Hi all!
I am newbie to cfengine and have probably silly question: do I
understand right that every host receives all policies for every other
host managed by cfengine on each update? Which means that my notebook
contains all rules to configure my servers?
Is there any way to avoid that? If I mana