Error 400 on SERVER : could not find class xxx for yyy on node yyy

117 views
Skip to first unread message

Christian Charpentier

unread,
May 30, 2014, 8:15:07 AM5/30/14
to puppet...@googlegroups.com
Hi,
I'm statrting using puppet with role/profile pattern and i'm facing a problem.
I use puppet 3.4.3 with a master running on red hat 2.6 and a client on a local VM centOS 6.5.
When i try to test my code with the command above i got an error : Error 400 on SERVER could not find class vstar::apache for puppetclient on node puppet client.

puppet agent --server=d0puppet.victor-buck.com --debug --verbose --noop --test


Here is my puppet code :

# /etc/puppet/manifests/site.pp
import "classes/*"
 
case $operatingsystem {
    'Solaris':          { include role::solaris }
    'RedHat', 'CentOS': { include role::redhat  }
    /^(Debian|Ubuntu)$/:{ include role::debian  }
    default:            { include role::generic }
}

case $hostname {
    /^puppetclient/:   { include vstar::roles::www }
}

#/etc/puppet/modules/vstar/manifests/roles/www.pp
class vstar::roles::www {
  include vstar::profiles::webserver
  include vstar::profiles::mailserver
}

#/etc/puppet/modules/vstar/manifests/profiles/webserver.pp
class vstar::profiles::webserver {
  include vstar::apache
  include common::postfix
}

#/etc/puppet/modules/vstar/manifests/apache/manifests/init.pp
class vstar::apache {
  include apache::install, apache::service
}

I can't figure out the issue here. Any idea on the solution to fix this?
Any comment or idea is welcome.

Thanks.

José Luis Ledesma

unread,
May 30, 2014, 9:53:42 AM5/30/14
to puppet...@googlegroups.com

Class vstar::apache  should be in

/etc/puppet/modules/vstar/manifests/apache.pp

To allow autoloader find it.

Regards,

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/75a4d45f-9259-40c9-887e-c717b0d67c94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christian Charpentier

unread,
Jun 2, 2014, 3:55:50 AM6/2/14
to puppet...@googlegroups.com
Thanks a lot Jose, i appreciate your help :)
Reply all
Reply to author
Forward
0 new messages