Puppet Could Not Find Class Error
Contents |
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company
Puppet Error 400 On Server Could Not Find Class
Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags puppet agent could not find class Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only
Puppet Strace
takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Could not find class, and yet it is there up error while evaluating a function call, could not find class vote 23 down vote favorite 5 When doing a puppet agent call from a new image, I'm getting a err: Could not find class custommod error. The module itself is in /etc/puppet/modules/custommod same as all of the other modules we're calling, but this one is obstinante. [site.pp] node /clunod-wk\d+\.sub\.example\.local/ { include base include curl include custommod class{ "custommod::apps": frontend => "false} [...] } When the puppetmaster is run with debug output, it clearly finding the could not find declared class puppet information for base and curl: debug: importing '/etc/puppet/modules/base/manifests/init.pp' in environment production debug: Automatically imported base from base into production debug: importing '/etc/puppet/modules/curl/manifests/init.pp' in environment production debug: Automatically imported curl from curl into production err: Could not find class custommod for clunod-wk0130.sub.example.local at /etc/puppet/manifests/site.pp:84 on node clunod-wk0130.sub.example.local Line 84 is include custommod An abbreviated directory and file structure: /etc/puppet |- manifests | |- site.pp | |- modules |- base | |- manifests | |- init.pp | |- curl | |- manifests | |- init.pp | |- custommod |- files | |- apps | |- [...] | |- manifests |- init.pp |- apps.pp I did check spelling :} The content of init.pp in the custommod directory is completely unremarkable: class custommod { } The intent is to create an empty class for the apps.pp file, which is where the meat is. class custommod::apps { [lots of stuff] } Only, it's never getting to the apps file. If I comment out the include custommod, the above error is generated on the class{ "custommod::apps": frontend => "false} line instead. What am I missing in my hunt to find out how this error is being generated? I need to note that this repo works just fine if it is run locally via puppet apply. puppet puppetmaster share|improve this question edited Jan 11 '12 at 22:22 asked Jan 11 '12 a
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn
Puppet Class Not Found
more about Stack Overflow the company Business Learn more about hiring developers or posting error: could not find class ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community
Error: Evaluation Error: Error While Evaluating A Function Call, Could Not Find Class
Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Puppet cannot find class up vote 0 down vote favorite http://serverfault.com/questions/349046/could-not-find-class-and-yet-it-is-there Hi I'm new to puppet and I'm trying to make a test class, but when I run puppet apply-t I get error Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::heroes for under my test directory I have . ├── examples │ ├── init.pp │ └── superhero.pp └── manifests ├── init.pp └── superhero.pp 2 directories, 4 files in my superhero.pp under manifest the http://stackoverflow.com/questions/31882502/puppet-cannot-find-class code reads class heroes { user { 'thor': ensure => present, } } in my superhero.pp under example the code reads include heroes Not sure why when I run puppet apply --noop superheroes.pp under examples that error shows up? Here is my complete tree under modules ├── hosts │ ├── examples │ │ └── init.pp │ └── manifests │ └── init.pp ├── nginx │ ├── examples │ │ └── init.pp │ ├── files │ │ ├── default.conf │ │ ├── index.html │ │ └── nginx.conf │ ├── index.html │ └── manifests │ ├── index.html │ └── init.pp ├── test │ ├── examples │ │ ├── admins.pp │ │ ├── init.pp │ │ └── superhero.pp │ └── manifests │ ├── admins.pp │ ├── init.pp │ └── superhero.pp └── users ├── examples │ ├── admins.pp │ └── init.pp └── manifests ├── admins.pp └── init.pp puppet share|improve this question edited Aug 7 '15 at 18:08 asked Aug 7 '15 at 16:25 jumpman8947 8118 1 If you want to let the autoloader find your class and allow you to include it, you should put it in a module. See docs.puppetlabs.com/puppet/latest/reference/… –Dan Lowe Aug 7 '15 at 16:46 Isn't my include inside my module(examples-superhero.pp)? –jumpman8947
QueryOpen cron issuesPlatform Report - 2 Week ActivityPuppet Solaris issuesRuby 1.9 IssuesSupport Customer TicketsSupport TicketsTelly DeprecationsTickets - Assigned to MeTickets https://projects.puppetlabs.com/issues/21981 - Authored by MeTickets - By PriorityTickets - In Topic Branch Pending ReviewTickets - Top by votesTickets - Unassigned to a target releaseTickets - UnreviewedTickets - https://ask.puppet.com/question/1680/puppet-apply-error-could-not-find-class/ unreviewed and outside SLATickets - waiting for actionTickets with simple fixes Watchers (2) Sylvain AvrilCharlie Sharpsteen The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com This issue tracker could not is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using https://tickets.puppetlabs.com. See the following page for information on filing tickets with JIRA: The Puppet Projects Workflow describes how to file tickets against Puppet projects. Bug #21981 could not find Random "Could not find class xxx for node [node] on [node]" Added by Sylvain Avril almost 3 years ago. Updated over 2 years ago. Status:Needs More InformationStart date:Priority:NormalDue date:Assignee:Sylvain Avril% Done:0%Category:-Target version:- Affected Puppet version:3.2.3 Branch: Keywords: We've Moved! Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com Description After some modules updates, my puppet master keep logging a “Could not find class” error 3 times : Jul 30 16:49:02 ILNXSVCPUP01 puppet-master[20687]: Could not find class apache::params for dlnxwebext01.filhetallard.com on node dlnxwebext01.filhetallard.com At first, it was with another class. I’ve commented all references to it and went in another error on another class. Everytime, this error come three times. In debug mode, I don’t see much information. I’ve got the error with Puppet 3.1.x and I have upgraded to 3.2.3 with no result. It seems a bit like issue 20573. However my configuration didn't have any reference to custom module path : [main] confdir = /app/data/puppet/master-dev/etc vardir =
not find class edit puppet3 agent apply modules classes asked 2013-06-14 15:03:03 -0500 BaltoStar 195 ●36 ●42 ●46 I'm on Windows Server 2008 box "qa-server-1" with Puppet Agent for Windows I've defined 2 modules and a node defs file : c:/puppetcode/modules/module-a/manifests/init.pp class module-a{} c:/puppetcode/modules/website-config/module-b/manifests/init.pp class module-b{} c:/puppetcode/nodes/qa-nodes.pp node 'qa-server-1' { include 'module-a' include 'module-b' } from Administrator Puppet Command Prompt I run : puppet apply --verbose --modulepath=c:/puppetcode c:/puppetcode/nodes/qa-nodes.pp Puppet finds & applies module-a but fails to find module-b : Error: Could not find class module-b for qa-server-1 on node qa-server-1 edit retag flag offensive close merge delete add a comment 2 answers Sort by » oldest newest most voted 1 answered 2013-06-14 17:49:41 -0500 mrzarquon 81 ●1 ●2 You cannot nest modules into subfolders in a module path. You will want to move module-b to the same folder level as module-a. (ie c:/puppetcode/modules/website-config/module-b/manifests/init.pp should c:/puppetcode/modules/module-b/manifests/init.pp). More documentation around the file layout of a module is provided on the module docs page. edit flag offensive delete link more CommentsSeriously ? All modules must be in a flat folder structure under the module path root ? If true, that's disturbing because it doesn't allow good hierarchical organization.BaltoStar( 2013-06-14 18:46:48 -0500 )editI am now adopting Librarian-puppet, which transforms our GitHub deep hieararchy into a flat set of modules ( one couild even think of it as a form of de-normalization ).BaltoStar( 2013-06-14 20:56:35 -0500 )editYou can always list multiple module dirs by using a colon separator. You can also use facts in your module path. For example /etc/puppet/$environment/modules. To your point ...(more)Ancillas( 2013-06-16 03:25:42 -0500 )editCheck-out Librarian-puppet. It allows any arbitrary folder-hierarchy in source-control and converts it to a flat-structure on the master or agent machine.BaltoStar( 2013-06-16 12:58:11 -0500 )editadd a comment 0 answered 2013-06-14 19:05:51 -0500 GregLarkin 4842 ●5 ●17 ●62 http://www.puppet.com/ You can structure your modules hierarchica