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 wrote

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 lib/puppet/type/f

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 for

Re: [Puppet Users] Custom type and provider

2018-09-21 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, cen

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 g

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 = "First

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 f

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 wrote: > On Thu, Mar 7, 2013 at 1:38 PM, Nan Liu wrote: > >> On Thu, Mar 7, 2013 at 8:47 AM, 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 curr

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 wrote: > On Thu, Mar 7, 2013 at 8:47 AM, 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

Re: [Puppet Users] Custom type and provider development

2013-03-07 Thread Nan Liu
On Thu, Mar 7, 2013 at 8:47 AM, 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 we don't bother

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 paramet