Re: [Puppet Users] function that returns parameters from a webservice

2016-06-11 Thread Henrik Lindberg
On 11/06/16 07:57, Pearl Raj wrote: Peter and Henrik, thanks for writing in. Let me explain the scenario once. We use puppet 3 with Hiera for appX application. But due to some internal issues (management, company policy), the team which supports the application (Support-appX) do not have access

Re: [Puppet Users] function that returns parameters from a webservice

2016-06-10 Thread Pearl Raj
Peter and Henrik, thanks for writing in. Let me explain the scenario once. We use puppet 3 with Hiera for appX application. But due to some internal issues (management, company policy), the team which supports the application (Support-appX) do not have access to Hiera and those who manages Hie

Re: [Puppet Users] function that returns parameters from a webservice

2016-06-10 Thread Henrik Lindberg
On 10/06/16 17:53, Pearl Raj wrote: I am trying to write a module containing a function that returns parameters from a webservice - http://localhost:5000/app/api/nodes/node_id. This function should return a hash of configuration settings specific to that host. How do I do this? I am using puppet

Re: [Puppet Users] function that returns parameters from a webservice

2016-06-10 Thread Peter Kristolaitis
You can write custom functions[1], but I don't think they can return a hash -- only a single value. This functionality is designed for things like calculating password hashes, etc, not generalized data lookup. This is probably also completely the wrong approach, in the Puppet model, if your g

[Puppet Users] function that returns parameters from a webservice

2016-06-10 Thread Pearl Raj
I am trying to write a module containing a function that returns parameters from a webservice - http://localhost:5000/app/api/nodes/node_id. This function should return a hash of configuration settings specific to that host. How do I do this? I am using puppet 3.0. pseudo code is as follows n