"Could not find class" - I must have done something incredibly stupid.. But I can't figure out what....

17 views
Skip to first unread message

omfg9899

unread,
Sep 28, 2014, 5:31:41 PM9/28/14
to puppet...@googlegroups.com
Puppet version : 2.6.14
Error                  : Could not find class"
Mode                 : Standalone (no puppetmaster)
-----------------------------------------------------

What's run in inside the puppet run script?
"export FACTERLIB=/var/els/puppet/modules/facts/files
/usr/bin/puppet apply /var/els/puppet/manifests/site.pp --modulepath /var/els/puppet/modules --debug
"
Note : There is a custom fact inside /var/els/puppet/modules/facts/files that does work as designed.


 What did I do that didn't work?

I created a custom .pp file that is supposed to configure a certain type of server. In this case, webapps server stuff...


The file is ** "/var/els/puppet/modules/webapps/manifests/apps_server_content.pp"

<apps_server_content>

class webapps::apps_server_content {   
file {'/home/webapps/evl/data/logs':

   ensure => directory,
    owner => 'webappsuser',
    group => 'webappsgroup',
    mode => 0755,
    require => Class['Webapps::Webapps_User'],
  }  
}
</apps_server_content>

Then I added this line to the init.pp for the specified app.

class webapps {

include utils
include jetty
include jetty::service
include webapps::apps_server_content

.......

}

  No matter what I do, it falls apart when I run the puppet apply command always complains that it can't find the module, but the module is there with the same rwxrwxr x permissions and owned as root just like all the other files that are setup the same way and DO actually run.   What can I possibly be missing here?

Thanks in advance,


 J

omfg9899

unread,
Sep 28, 2014, 5:38:07 PM9/28/14
to puppet...@googlegroups.com
 I forgot to add this..

warning: Could not find class webapps::apps_sever_content for i-xxxxxx.ec2.internal
Could not find class webapps::apps_sever_content at /var/els/puppet/manifests/nodes.pp:10 on node i-xxxxxx.ec2.internal

omfg9899

unread,
Sep 28, 2014, 10:05:19 PM9/28/14
to puppet...@googlegroups.com
  Figured this out..  It was a mis-spelling in the nodes.pp file. But it was also an error in the file class file it's self.  I had some single quotes around the username and group that shouldh't haven't been there..


 Incredibly stupid.. :/


On Sunday, September 28, 2014 4:31:41 PM UTC-5, omfg9899 wrote:
Reply all
Reply to author
Forward
0 new messages