Hi all, I was wondering if there are any "hello world" samples for creating a custom type. The type/provider relationship is a bit confusing and I haven''t been able to find a simple enough existing module to look at. Specifically, I want to create a custom type that can create a CNAME for my host using my DNS providers Rest API. Any pointers down the right path would be much appreciated. thanks, chetan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Wed, Jun 15, 2011 at 7:31 PM, Chetan <csarva@gmail.com> wrote:> Hi all, > > I was wondering if there are any "hello world" samples for creating a > custom type. The type/provider relationship is a bit confusing and I > haven''t been able to find a simple enough existing module to look at. > > Specifically, I want to create a custom type that can create a CNAME > for my host using my DNS providers Rest API. Any pointers down the > right path would be much appreciated. > > thanks, > > chetan > >Did you find this document? http://projects.puppetlabs.com/projects/1/wiki/Development_Practical_Types -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Jun 15, 10:42 pm, Nigel Kersten <ni...@puppetlabs.com> wrote:> Did you find this document? > > http://projects.puppetlabs.com/projects/1/wiki/Development_Practical_...Thanks! I hadn''t found that link earlier, however there are still quite a few bits missing to actually getting things to work in a real environment. To that end, I took that example and another using a backend Provider and created the following sample/stub module repository: https://github.com/chetan/puppet-custom_type_examples I hope that''ll be of use to anyone else trying to create a custom type. chetan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Chetan wrote:> On Jun 15, 10:42 pm, Nigel Kersten<ni...@puppetlabs.com> wrote: >> Did you find this document? >> >> http://projects.puppetlabs.com/projects/1/wiki/Development_Practical_... > > Thanks! I hadn''t found that link earlier, however there are still > quite a few bits missing to actually getting things to work in a real > environment. To that end, I took that example and another using a > backend Provider and created the following sample/stub module > repository: > > https://github.com/chetan/puppet-custom_type_examples > > I hope that''ll be of use to anyone else trying to create a custom > type.This might also help: http://www.kartar.net/2010/02/puppet-types-and-providers-are-easy/ James -- James Turnbull Puppet Labs 1-503-734-8571 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.