Am 10.01.2022 um 18:07 schrieb Karsten Heymann:
Hi Helmut,
you could take this as a starting point (untested):
$profile_logging = $profiles.map | $p_name, $p_data | { $p_data.map |
$s_name, $s_data | { $s_data['syslog'] } }.flatten
p_ is the outer profile layer, s_ is the inner service layer.
Hi Helmut,
you could take this as a starting point (untested):
$profile_logging = $profiles.map | $p_name, $p_data | { $p_data.map |
$s_name, $s_data | { $s_data['syslog'] } }.flatten
p_ is the outer profile layer, s_ is the inner service layer.
Some notes on solving this kind of problems:
1) It
Am 10.01.2022 um 15:55 schrieb 'Dirk Heinrichs' via Puppet Users:
> Am Montag, dem 10.01.2022 um 14:29 +0100 schrieb Helmut Schneider:
>
>> I'm afraid I still do not unterstand this correctly:
>>
>> profiles:
>>vpn:
>> openvpn:
>>syslogd:
>> 40-openvpn.conf:
>>
Am Montag, dem 10.01.2022 um 14:29 +0100 schrieb Helmut Schneider:
I'm afraid I still do not unterstand this correctly:
profiles:
vpn:
openvpn:
syslogd:
40-openvpn.conf:
openvpn:
'*.*': '/var/log/openvpn.log'
$array = [1].m
Am 10.01.2022 um 08:04 schrieb 'Dirk Heinrichs' via Puppet Users:
Am Sonntag, dem 09.01.2022 um 15:31 +0100 schrieb Helmut Schneider:
Unfortunately I'm not able to adapt it to my needs:
$array = []
[1, 2, 3].each |$variable| {
add $variable to $array
}
Any tips?
The first link you posted
Am Sonntag, dem 09.01.2022 um 15:31 +0100 schrieb Helmut Schneider:
Unfortunately I'm not able to adapt it to my needs:
$array = []
[1, 2, 3].each |$variable| {
add $variable to $array
}
Any tips?
The first link you posted already has the answer. Puppet variables are
immutable so you can't c
Hi,
I need to fill an array in a loop. While I understand variable scoping I
found some information that it is possible.
https://stackoverflow.com/questions/41041549/puppet-adding-array-elements-in-a-loop/41047623
https://blog.thewatertower.org/2019/04/15/building-or-appending-to-an-array-usin