Hi Henrik,
something from your previous answer made me think and I've been playing a
little bit with what you said:
>> class cb_sync(
>>Hash $cb_sync = lookup(cb_data_sync),
>>
> The lookup here has no effect - it will use APL to do exactly what the
> default expression is doing - thus, it w
Hi Henrik,
thanks for your answer.
The answer is:
* => $data_sync['ssh_key']
Without interpolation the resource is created as it's areal hash... (you
can't imagine how much time I spent in this one Fun fact: the notify is
correct)
* The localdata key does not exists in the define as it's
On 09/05/18 13:36, Arnau wrote:
Hi all,
I have a hash of hashes in hiera:
cb_data_sync:
localdata:
peers: peer1 peer2
source: /data/1
target: /data/2
ssh_key:
key: XYZ
type: ssh-rsa
user: root
Then, in a main class, I call a define using the above d
Hi all,
I have a hash of hashes in hiera:
cb_data_sync:
localdata:
peers: peer1 peer2
source: /data/1
target: /data/2
ssh_key:
key: XYZ
type: ssh-rsa
user: root
Then, in a main class, I call a define using the above data:
class cb_sync(
Hash $cb_sync = loo