Monday, August 18, 2014

But when the client attempts to grab the catalog, I get the following error; Error: Could not retrie


Server Fault is a question cooking classes for kids and answer site for professional system and network administrators. It's 100% free, no registration required.
I have a module in /etc/puppet/modules/sheffield/manifests/autofs/net.pp cooking classes for kids which is trying to use the autofs::mount defined type. class sheffield::autofs::net { include ::autofs autofs::mount { '/net': map => '', options => '-hosts', } }
But when the client attempts to grab the catalog, I get the following error; Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type autofs::mount at /etc/puppet/modules/sheffield/manifests/autofs/net.pp:7 on node rhel6test.shef.ac.uk
Any ideas? I thought maybe it was a problem with not being autoload the type as it has the same name (autofs) as a subclass in sheffield::autofs, so I tried renaming to sheffield::auto-fs and it made no difference.
I tried copying the mount.pp from /etc/puppet/autofs/manifests into /etc/puppet/sheffield/manifests/autofs/ and it did find the resource type, but didn't work because of a load of other missing dependencies in mount.pp (and obviously, that's not a nice solution to the problem).
It's not having a problem with the manifest you've provided, it's not finding a defined type at autofs::mount . Can you show us what that defined type (and its related file structure) looks like? This seems like a relative name lookup problem in 2.7 - unfortunately, the solution to that would be to either upgrade to 3 or change the name collision; are you certain there was no change in behavior under a different name? –  Shane Madden ♦ May 29 '13 at 6:38     
Did you also rename the directory /etc/puppet/modules/sheffield/manifests/autofs/ to auto-fs when you tried renaming sheffield::autofs ? –  Mikko Jul 23 '13 at 14:23
Sign up using Google
1 Including a defined resource in a class
Is there a word for this emotion? Resentment over someone's good fortune without wanting it - Not quite jealousy/envy
How literally should you take "The Higgs boson gives other particles mass"?
Technology Life / Arts Culture / Recreation Science Other Stack Overflow Server Fault Super User Web Applications Ask Ubuntu Webmasters Game Development TeX - LaTeX Programmers Unix & Linux Ask Different (Apple) WordPress Development Geographic Information Systems Electrical Engineering Android Enthusiasts Information Security Database Administrators Drupal Answers SharePoint User Experience Mathematica more (14) Photography Science cooking classes for kids Fiction & Fantasy Graphic Design Seasoned Advice (cooking) Home Improvement Personal Finance & Money Academia more (10) English Language & Usage Skeptics Mi Yodeya (Judaism) Travel Christianity cooking classes for kids Arqade (gaming) Bicycles Role-playing Games more (21) Mathematics Cross Validated (stats) Theoretical Computer Science Physics MathOverflow more (7) Stack Apps Meta Stack Exchange Area 51 Stack Overflow Careers
Server Fault works best with JavaScript enabled

No comments:

Post a Comment