[Puppet Users] Re: trouble with custom type on 0.24.8
Hi John, On 19 Okt., 15:37, jcbollinger wrote: > The custom type's Ruby code should be in / > /plugins/puppet/types/.rb. Its provider(s), if > any, should be in //plugins/puppet/provider/ > /.rb. Indeed, I got the path wrong. Thanks for the clarification. And just for the record (and other readers): You have a typo in the path in your answer. It is not .../types/ but .../type/. best regards Bernhard --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~--~~~~--~~--~--~---
[Puppet Users] Re: trouble with custom type on 0.24.8
On Oct 16, 5:07 am, Bernhard Bock wrote: > >> Clients are giving me the following error: > >> "Could not retrieve catalog: Could not find resource type zypper_repo > >> at /etc/puppet/manifests/nodes/mgt.pp:33 on node " > > I'm experiencing the same problem with a custom type in 0.24.8. > > The type compiles when called with 'ruby -rpuppet '. > With irb, I can retrieve the type just fine. > > Any chance that it is related to this > bug?http://projects.reductivelabs.com/issues/2574 Custom types in modules generally work in 0.24.8, so I doubt that issue 2574 is related to your problem. Supposing that your custom type is well-formed (which successful compilation does not guarantee), the most likely causes of your problem are that it is not correctly positioned inside your module, or it is not readable by puppetmasterd. The custom type's Ruby code should be in / /plugins/puppet/types/.rb. Its provider(s), if any, should be in //plugins/puppet/provider/ /.rb. The files and all the directories in the path to them should be readable by the puppetmaster process, which may (should) be running as a non-root user. Be sure also to read http://reductivelabs.com/trac/puppet/wiki/PluginsInModules for required client-side configuration for plug-ins. --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~--~~~~--~~--~--~---
[Puppet Users] Re: trouble with custom type on 0.24.8
On Oct 16, 2009, at 3:07 AM, Bernhard Bock wrote: > > Hi, > >>> I'm having trouble getting a simple custom type to work. >>> >>> Clients are giving me the following error: >>> "Could not retrieve catalog: Could not find resource type >>> zypper_repo >>> at /etc/puppet/manifests/nodes/mgt.pp:33 on node " > > I'm experiencing the same problem with a custom type in 0.24.8. > > The type compiles when called with 'ruby -rpuppet '. > With irb, I can retrieve the type just fine. > > Any chance that it is related to this bug? > http://projects.reductivelabs.com/issues/2574 If you copy the type into your libdir, or somewhere Ruby will search for it, does it work there? If so, that's definitely the problem. Either way, actually, I'd expect that to be a problem 0.24.8, I think. -- If you would be a real seeker after truth, it is necessary that at least once in your life you doubt, as far as possible, all things. -- Rene Descartes - Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~--~~~~--~~--~--~---
[Puppet Users] Re: trouble with custom type on 0.24.8
Hi, >> I'm having trouble getting a simple custom type to work. >> >> Clients are giving me the following error: >> "Could not retrieve catalog: Could not find resource type zypper_repo >> at /etc/puppet/manifests/nodes/mgt.pp:33 on node " I'm experiencing the same problem with a custom type in 0.24.8. The type compiles when called with 'ruby -rpuppet '. With irb, I can retrieve the type just fine. Any chance that it is related to this bug? http://projects.reductivelabs.com/issues/2574 best regards Bernhard --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~--~~~~--~~--~--~---
[Puppet Users] Re: trouble with custom type on 0.24.8
On Sep 10, 2009, at 6:48 AM, Justin Kinney wrote: > > I'm having trouble getting a simple custom type to work. > > Clients are giving me the following error: > "Could not retrieve catalog: Could not find resource type zypper_repo > at /etc/puppet/manifests/nodes/mgt.pp:33 on node " > > The custom type is present in the /var/lib/puppet/lib/puppet/type > directory on both clients and server (via pluginsync), but it's not > working. > > My node.pp, init.pp for the module, and custom type are listed below. > Any ideas? Does the type compile? E.g., if you do 'ruby -rpuppet ', do you get an error? If you load that file directly in irb using 'load', can you retrieve the type with Puppet::Type.type(:...)? -- We cannot really love anybody with whom we never laugh. --Agnes Repplier - Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~--~~~~--~~--~--~---