Re: [Puppet Users] Referencing Deferred functions in Puppet Code or Hiera YAML

2020-01-24 Thread Vincent Lamers
isn't better not to return a Sensitive data in vault_lookup.rb (just plain text), but wrap the Deferred function with Sensitive? Like this: $secret_lookup = Sensitive(Deferred('vault_lookup::lookup', ["secret/ client.example.com", 'https://puppet.example.com:8228'])) notify {mysql_root:

Re: [Puppet Users] Referencing Deferred functions in Puppet Code or Hiera YAML

2019-03-12 Thread Karsten Heymann
Hi, Am Di., 12. März 2019 um 11:54 Uhr schrieb Henrik Lindberg : > Yeah - sigh... The vault lookup returns an instance of Sensitive which > get / dig cannot dig into. We could possibly allow digging into a > Sensitive value as the result would also be made sensitive, but that > function does not

Re: [Puppet Users] Referencing Deferred functions in Puppet Code or Hiera YAML

2019-03-12 Thread Henrik Lindberg
On 2019-03-11 04:01, comport3 wrote: Hi Henrik, You're correct - this sample code precedes getting the Hiera function/lookup working, I want to be able to do it in Puppet code first. I've ended up with the following - ```  $secret_lookup = Deferred('vault_lookup::lookup',

Re: [Puppet Users] Referencing Deferred functions in Puppet Code or Hiera YAML

2019-03-10 Thread comport3
Hi Henrik, You're correct - this sample code precedes getting the Hiera function/lookup working, I want to be able to do it in Puppet code first. I've ended up with the following - ``` $secret_lookup = Deferred('vault_lookup::lookup', ["secret/client.example.com",

Re: [Puppet Users] Referencing Deferred functions in Puppet Code or Hiera YAML

2019-03-08 Thread Henrik Lindberg
On 2019-03-08 03:13, comport3 wrote: Hi Henrik, Thanks for your reply. I still don't really understand how to use your example - is it an additional custom function written in Ruby that would be synchronised from the master? I showed a hiera backend that returns Deferred - but it seems

Re: [Puppet Users] Referencing Deferred functions in Puppet Code or Hiera YAML

2019-03-07 Thread comport3
Hi Henrik, Thanks for your reply. I still don't really understand how to use your example - is it an additional custom function written in Ruby that would be synchronised from the master? How would this be structured or implemented step by step please? This is what's in my current class,

Re: [Puppet Users] Referencing Deferred functions in Puppet Code or Hiera YAML

2019-02-27 Thread Henrik Lindberg
On 2019-02-27 00:01, comport3 wrote: Hi Henrik and Group, Thank you very much, this sounds like exactly what we are after. After reviewing https://puppet.com/docs/puppet/6.3/hiera_custom_backends.html we are a little lost as to how to get started. Does anyone have any example code of using a

Re: [Puppet Users] Referencing Deferred functions in Puppet Code or Hiera YAML

2019-02-26 Thread comport3
Hi Henrik and Group, Thank you very much, this sounds like exactly what we are after. After reviewing https://puppet.com/docs/puppet/6.3/hiera_custom_backends.html we are a little lost as to how to get started. Does anyone have any example code of using a Customer Backend or Puppet Function in

Re: [Puppet Users] Referencing Deferred functions in Puppet Code or Hiera YAML

2019-02-20 Thread Henrik Lindberg
On 2019-02-19 20:15, Grant Davies wrote: Yes exactly, using the deferred Function to lookup secrets on the agent side defined in Hiera. So I want to write some Puppet code in a Profile class that specifies where (Vault for us, but could be anything) to fetch the secret agent side, how, which

Re: [Puppet Users] Referencing Deferred functions in Puppet Code or Hiera YAML

2019-02-19 Thread Grant Davies
Yes exactly, using the deferred Function to lookup secrets on the agent side defined in Hiera. So I want to write some Puppet code in a Profile class that specifies where (Vault for us, but could be anything) to fetch the secret agent side, how, which key etc. Then reference that in Hiera for use

Re: [Puppet Users] Referencing Deferred functions in Puppet Code or Hiera YAML

2019-02-19 Thread Henrik Lindberg
On 2019-02-18 01:17, comport3 wrote: Does anyone have any real world examples of referencing Deferred lookups, either in Puppet code or Hiera that you could share? Vault Lookup shows examples of how to use it to lookup secrets on the agent side.

Re: [Puppet Users] Referencing Deferred functions in Puppet Code or Hiera YAML

2019-02-19 Thread chengkai liang
I don't recall that puppet had this feature but I may be wrong. What are you looking to do? On Sun, Feb 17, 2019 at 16:17 comport3 wrote: > Does anyone have any real world examples of referencing Deferred lookups, > either in Puppet code or Hiera that you could share? > > -- > You received this

Re: [Puppet Users] Referencing Deferred functions in Puppet Code or Hiera YAML

2019-02-18 Thread Lindsey Smith
Here is an example of fetching secrets from Vault via Hiera: https://github.com/hashicorp/webinar-vault-hiera-puppet On Mon, Feb 18, 2019 at 1:18 PM comport3 wrote: > Thank you very much Lindsay, I will lock in some time to digest and > understand this material. > > Are their any Hiera YAML

Re: [Puppet Users] Referencing Deferred functions in Puppet Code or Hiera YAML

2019-02-18 Thread comport3
Thank you very much Lindsay, I will lock in some time to digest and understand this material. Are their any Hiera YAML example? The specific use case I'm trying to solve is for 'mysql::server::root_password: '. On Tuesday, February 19, 2019 at 5:21:34 AM UTC+11, Lindsey Smith wrote: > > > > On

Re: [Puppet Users] Referencing Deferred functions in Puppet Code or Hiera YAML

2019-02-18 Thread Lindsey Smith
On Sun, Feb 17, 2019 at 4:17 PM comport3 wrote: > Does anyone have any real world examples of referencing Deferred lookups, > either in Puppet code or Hiera that you could share? > Ben Ford just gave a talk on this at Config Management Camp and his slides are here:

[Puppet Users] Referencing Deferred functions in Puppet Code or Hiera YAML

2019-02-17 Thread comport3
Does anyone have any real world examples of referencing Deferred lookups, either in Puppet code or Hiera that you could share? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it,