Forum: CFEngine Help
Subject: Re: Using Variables in insert lines
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,24417,24534#msg-24534
zzamboni Wrote:
---
> Yes and no - it would work, but you wouldn't be
> able to change valu
Forum: CFEngine Help
Subject: Re: Using Variables in insert lines
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,24417,24533#msg-24533
sauer Wrote:
> Wouldn't that just be the "append_if_no_lines"
> bundle, called with a "lines" slist generated by
> something like this:
Yes
Forum: CFEngine Help
Subject: Re: Using Variables in insert lines
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,24417,24531#msg-24531
zzamboni Wrote:
---
> It shouldn't be too hard to make a version
> of set_config_values() t
Forum: CFEngine Help
Subject: Re: Using Variables in insert lines
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,24417,24528#msg-24528
As is, the set_config_values() bundle will not work for the case you describe.
For this you could use plain insert_lines: promises as I sho
Forum: CFEngine Help
Subject: Re: Using Variables in insert lines
Author: timw077
Link to topic: https://cfengine.com/forum/read.php?3,24417,24526#msg-24526
Will this work with multiple lines being the same "setting?"
i.e.for rsyslog, I need a couple of setting, and some seings I want to lo
Forum: CFEngine Help
Subject: Re: Using Variables in insert lines
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,24417,24418#msg-24418
You almost got it:
bundle agent conf_system_syslog
{
vars:
ipv4_192_168_235::
"syslog_host" string => "192.167.235.34";
ipv4_192_168_5::