Re: [Puppet Users] Custom type and provider

2018-09-25 Thread Rafael Tomelin
Hi, Thanks, solved! Em seg, 24 de set de 2018 às 04:40, David Schmitt escreveu: > Hi Rafael, > > on puppet versions prior to puppet6, you need to install the > puppet-resource_api gem to support the provider. You can use the > puppetlabs-resource_api

Re: [Puppet Users] Custom type and provider

2018-09-24 Thread David Schmitt
Hi Rafael, on puppet versions prior to puppet6, you need to install the puppet-resource_api gem to support the provider. You can use the puppetlabs-resource_api module for that. Cheers, David On Sun, Sep 23, 2018 at 3:19 AM Rafael Tomelin

Re: [Puppet Users] Custom type and provider

2018-09-22 Thread Rafael Tomelin
Hi David Schmitt, I create de new module, class and provider with pdk the according this site puppet. My puppet is version 'puppet --version . 5.5.6'. But, the return error: *Could not autoload puppet/type/foo: no such file to load -- puppet/resource_api * *My type is:* *cat

Re: [Puppet Users] Custom type and provider

2018-09-22 Thread David Schmitt
Hi Rafael, if you are just starting out with this, I'd highly recommend looking into the Resource API. It makes the development of types much easier, is a supported part of this week's puppet 6 release, and available as a separate download for previous puppet versions. The PDK also has support

Re: [Puppet Users] Custom type and provider

2018-09-22 Thread Martin Alfke
> On 21. Sep 2018, at 22:57, Rafael Tomelin wrote: > > Yes, > > Esuqeci had already altered or removed the following lines: > defaultfor: operatingsystem =>: linux > confine: operatingsystem =>: linux defaultfor: kernel => :Linux operatingsystem is something like suse, debian,

Re: [Puppet Users] Custom type and provider

2018-09-21 Thread Rafael Tomelin
Yes, Esuqeci had already altered or removed the following lines: defaultfor: operatingsystem =>: linux confine: operatingsystem =>: linux But it had no effect Em sex, 21 de set de 2018 às 17:52, Nick Lewis escreveu: > On Fri, Sep 21, 2018 at 1:34 PM Rafael Tomelin > wrote: > >> Hi

Re: [Puppet Users] Custom type and provider

2018-09-21 Thread Nick Lewis
On Fri, Sep 21, 2018 at 1:34 PM Rafael Tomelin wrote: > Hi guys, > > I am creating a type in custom provider, but I am not able to understand > the following question. > > I created a basic type to understand the concept of things, as follows: > Puppet::Type.newtype(:mydir) do > @doc =

[Puppet Users] Custom type and provider

2018-09-21 Thread Rafael Tomelin
Hi guys, I am creating a type in custom provider, but I am not able to understand the following question. I created a basic type to understand the concept of things, as follows: Puppet::Type.newtype(:mydir) do @doc = "First custom type." ensurable do defaultvalues

[Puppet Users] custom type and provider testing

2013-05-27 Thread Corey Osman
Hi, I am writing a custom native type/ provider and want to perform some rspec testing but I can't seem to find any documentation on how to test native types and providers. Can someone point me in the right direction. Corey -- You received this message because you are subscribed to the

Re: [Puppet Users] Custom type and provider development

2013-03-08 Thread Josh Cooper
On Thu, Mar 7, 2013 at 6:42 PM, Nan Liu nan@gmail.com wrote: On Thu, Mar 7, 2013 at 1:38 PM, Nan Liu nan@gmail.com wrote: On Thu, Mar 7, 2013 at 8:47 AM, damian.folw...@gmail.com wrote: Hi, I'm very new to Ruby, and pretty new to Puppet so apologies if this is a bit Puppet custom

Re: [Puppet Users] Custom type and provider development

2013-03-08 Thread damian . folwell
Thanks Nan and Josh. Your help is much appreciated. Once I've finished first draft I'll upload to GitHub / Forge and ask for comments! -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails

[Puppet Users] Custom type and provider development

2013-03-07 Thread damian . folwell
Hi, I'm very new to Ruby, and pretty new to Puppet so apologies if this is a bit Puppet custom type development 101. We currently have a whole bunch of Windows services that are written in .Net. They are really simple and so we don't bother creating MSI installs for them and just use

Re: [Puppet Users] Custom type and provider development

2013-03-07 Thread Jakov Sosic
On 03/07/2013 05:47 PM, damian.folw...@gmail.com wrote: My question is, in the provider code what is the best way to dynamically determine the installutil path? All of the examples i can find setting a command are not dynamic (i.e. the full command path is known without looking at parameter

Re: [Puppet Users] Custom type and provider development

2013-03-07 Thread Nan Liu
On Thu, Mar 7, 2013 at 8:47 AM, damian.folw...@gmail.com wrote: Hi, I'm very new to Ruby, and pretty new to Puppet so apologies if this is a bit Puppet custom type development 101. We currently have a whole bunch of Windows services that are written in .Net. They are really simple and so

Re: [Puppet Users] Custom type and provider development

2013-03-07 Thread Nan Liu
On Thu, Mar 7, 2013 at 1:38 PM, Nan Liu nan@gmail.com wrote: On Thu, Mar 7, 2013 at 8:47 AM, damian.folw...@gmail.com wrote: Hi, I'm very new to Ruby, and pretty new to Puppet so apologies if this is a bit Puppet custom type development 101. We currently have a whole bunch of Windows

[Puppet Users] Custom type and provider

2011-08-18 Thread nothings_absolute
I have been messing with this for a while and have had no luck so hoping someone here can help. I created a customer type called autofs and a provider that uses ParsedFile to parse the auto_direct file according to what I found here: