Re: [Puppet-dev] Puppet Custom Types, the easy way

2014-01-28 Thread bert hajee
Just reread my reaction. Maybe it's not clear what a provider looks like for an easy_type. To make it really clear, here is the provider: require 'easy_type' require 'utils/oracle_access' Puppet::Type.type(:oracle_user).provide(:simple) do include EasyType::Provider desc "Manage Oracle users

Re: [Puppet-dev] Re: Help with Composite Namevars

2014-01-28 Thread Jeremy T. Bouse
On 28.01.2014 12:14, Reid Vandewiele wrote: I don't know the "right" way to do this but I've worked on a couple of composite namevar types at least enough that I've seen that kind of error before. In effect, when using a composite namevar you must manually specify how to extract individual para

[Puppet-dev] Re: Macros in puppet

2014-01-28 Thread Henrik Lindberg
On 2014-28-01 17:29, Pawel Tomulik wrote: W dniu wtorek, 28 stycznia 2014 16:47:53 UTC+1 użytkownik henrik lindberg napisał: I have been working on a new API for functions that I hope we will be able to finish for Puppet 4.0. I have just started and have looked at the work dalen an

Re: [Puppet-dev] Puppet Custom Types, the easy way

2014-01-28 Thread bert hajee
Luke, > Am I reading correctly that most of the work is in the type, thought? Is > it adding the right getters and setters on the provider? > Yes it does. Actually it's more like a type on steroids and adding the information the provider needs. This way it hides most of the gory details fro

[Puppet-dev] Re: Help with Composite Namevars

2014-01-28 Thread Reid Vandewiele
I don't know the "right" way to do this but I've worked on a couple of composite namevar types at least enough that I've seen that kind of error before. In effect, when using a composite namevar you must manually specify how to extract individual parameters from the resource title. It is assume

[Puppet-dev] Re: Macros in puppet

2014-01-28 Thread Pawel Tomulik
W dniu wtorek, 28 stycznia 2014 16:47:53 UTC+1 użytkownik henrik lindberg napisał: > > On 2014-27-01 4:00, Pawel Tomulik wrote: > > Hi, > > > > macros in puppets -> > > http://forge.puppetlabs.com/ptomulik/macro

[Puppet-dev] Re: Macros in puppet

2014-01-28 Thread Henrik Lindberg
On 2014-27-01 4:00, Pawel Tomulik wrote: Hi, macros in puppets -> http://forge.puppetlabs.com/ptomulik/macro They're similar to parser functions with three differences: * macro names may resemble names of puppet variables/bindings, e.g. 'foo::bar::geez' * stored in a hierarchy of direc