[Puppet Users] Puppet Agent 6.X on Debian 10 armel

2020-03-28 Thread Frédéric Lespez
Hi, I would like to install a Puppet Agent 6.X on a Debian 10 armel platform. There is no official package from Puppetlabs and only Puppet Agent 5.5 is packaged in Debian. So I am looking for to build myself a Puppet Agent 6.X for Debian 10 armel. I have found these two repositories: https://gi

Re: [Puppet Users] Puppet Resource Api and attributes 'behaviour: :parameter'

2020-02-24 Thread Frédéric Lespez
Hi David, Thanks for your quick response. I will contribute to feature request on Github. Regards, Fred -- 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, send an email to puppet

[Puppet Users] Puppet Resource Api and attributes 'behaviour: :parameter'

2020-02-24 Thread Frédéric Lespez
Hi, I currently trying to develop a custom type with Puppet Resource API. Using this documentation: https://github.com/puppetlabs/puppet-specifications/blob/master/language/resource-api/README.md I managed to develop something that works with attributes of behavior 'namevar' and 'readonly'. I wou

Re: [Puppet Users] Inside a custom function, how do you if noop is enabled ?

2015-09-21 Thread Frédéric Lespez
> In the 3.x function API use: > >lookupvar('varname') > > In the 4.x function API use: > >closure_scope.lookupvar('varname') > > Here is the specification for the 4.x API. > > https://github.com/puppetlabs/puppet-specifications/blob/master/language/func-api.md > >

[Puppet Users] Inside a custom function, how do you if noop is enabled ?

2015-09-20 Thread Frédéric Lespez
In a manifest, you can test the built-in variable $clientnoop to know if puppet agent runs in noop mode or not. See https://docs.puppetlabs.com/puppet/latest/reference/lang_facts_and_builtin_vars.html#puppet-agent-facts But inside a custom function, how can you know if noop is enabled or not ? I

[Puppet Users] Inside a custom function, how can you know if noop is enabled ?

2015-09-05 Thread Frédéric Lespez
Hi, Inside a manifest, you can know if noop is enabled thanks to the $clientnoop variable[1]. But inside a custom function, how can you know it ? For now, I added a parameter to my function in order to send the value $clientnoop. But it is not very elegant. Any suggestions ? Thanks in advance