Re: [Puppet Users] Looking up the value defined in the hiera.yaml

2020-12-06 Thread Go Iwai
Hello Martin, Thank you for letting me know of another way. Yes - using the content property within the file resource and interpolate from hiera could be another option for what I want to do. However, I want to change the content property each hostname. Which means every host has individual conte

Re: [Puppet Users] Looking up the value defined in the hiera.yaml

2020-11-30 Thread Martin Alfke
Hi Go, > On 24. Nov 2020, at 00:06, Go Iwai wrote: > > Hello Dirk, > > Thank you for replying to the mail. However, your code doesn't work for the > resource of exec like below: > > exec { '/path/to/decrypted-file': > command => 'eyaml decrypt --file=/path/to/encrypted-file > > /path/to/de

Re: [Puppet Users] Looking up the value defined in the hiera.yaml

2020-11-30 Thread Go Iwai
Hello Dirk, Thank you for replying to the mail. However, your code doesn't work for the resource of exec like below: exec { '/path/to/decrypted-file': command => 'eyaml decrypt --file=/path/to/encrypted-file > /path/to/decrypted-file', # ...snip } This generates a notice like: Notice: /St

Re: [Puppet Users] Looking up the value defined in the hiera.yaml

2020-11-23 Thread 'Dirk Heinrichs' via Puppet Users
Am Montag, den 23.11.2020, 15:23 +0900 schrieb Go Iwai: > It looks more natural if I could rewrite this line above like below: > > eyaml decrypt --file=encrypted-file > --pkcs7-public-key=%{pkcs7_public_key} > --pkcs7-private-key=%{pkcs7_private_key} I don't think you need to specify these optio