Re: [Puppet Users] Custom Types and Providers

2014-07-11 Thread Michael Legleux
I tried starting irb from various places along that tree and as my user and root. The /etc/puppet/modules/example/lib/puppet/provider/custom_package/apt.rb file contains: Puppet::Type.type(:custom_package).provide(:apt) do def exists? end def create end def destroy end end end On

Re: [Puppet Users] Custom Types and Providers

2014-07-11 Thread Rob Reynolds
On Thu, Jul 10, 2014 at 7:43 PM, Michael Legleux wrote: > Using puppet 3.62 > > Trying to follow along with the book > At one point (beginning of ch. 3), it says using irb: > > >> require 'puppet' > >> Puppet::Type.type(:package) > => Puppet::Type::Package > My output is identical > However the n

Re: [Puppet Users] Custom Types and Providers

2014-07-10 Thread Michael Legleux
Puppet[:modulepath] returns: => "/etc/puppet/modules:/usr/share/puppet/modules" The tree I posted previously is located in /etc/puppet/modules/example (as the book had laid out.) The module path must be correct (as I explain in a bit) since i see it all referenced when I run puppet on the agent I

Re: [Puppet Users] Custom Types and Providers

2014-07-10 Thread Dan Bode
My best guess is that modulepath is not configured to the correct location. After you run parse_config, see what Puppet[:modulepath] returns (it needs to maps to the path that contains the directory with your lib dir in it). ie: /fake_module/lib parse_config should load the default settings f

[Puppet Users] Custom Types and Providers

2014-07-10 Thread Michael Legleux
Using puppet 3.62 Trying to follow along with the book At one point (beginning of ch. 3), it says using irb: >> require 'puppet' >> Puppet::Type.type(:package) => Puppet::Type::Package My output is identical However the next bit diverges... >> require 'puppet' >> Puppet.parse_config >> Puppet::T

[Puppet Users] Custom types and providers development

2010-02-27 Thread .Nox
Hello, I am playing with custom types and providers development and got a issue. While reading: http://reductivelabs.com/trac/puppet/wiki/Development/PracticalTypes http://reductivelabs.com/trac/puppet/wiki/Development/CompleteResourceExample http://www.kartar.net/2010/02/puppet-types-and-provider