Class vstar::apache  should be in

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

To allow autoloader find it.

Regards,
El 30/05/2014 15:48, "Christian Charpentier" <[email protected]> escribió:

> 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.
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/75a4d45f-9259-40c9-887e-c717b0d67c94%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/75a4d45f-9259-40c9-887e-c717b0d67c94%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAF_B3df0dxCoBCPSKtXcy3u4ss9g6fWocgqjEAm2X5Zb9%2BR9XQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to