Eric2
2009-Aug-19 15:37 UTC
[Puppet Users] Howto understand the error message " Could not find class parent XXXXXXXX"? howto link it?
Hi, err: Could not retrieve catalog: Could not find class parent apache::package at /home/puppet/modules/apache/manifests/debian.pp:11 on node ns0.mysite.org vi /home/puppet/modules/apache/manifests/debian.pp ### debian class apache::debian inherits apache::package { $config_dir = ''/etc/apache2/'' file {"$vhosts_dir": ensure => ''/etc/apache2/sites-enabled/'', } File[default_apache_index] { path => ''/var/www/index.html'', } } <<<<<<<<<<<< line 11 In the same directory i have found in the file package.pp # deploy apache as package class apache::package inherits apache::base { package { ''apache'': name => ''apache'', ensure => present, } File[''vhosts_dir'']{ require => Package[apache], } File[''config_dir'']{ require => Package[apache], } Service[''apache'']{ require => Package[apache], } File[''default_apache_index'']{ require => Package[apache], } File[''modules_dir'']{ require => Package[apache], } File[''web_dir'']{ require => Package[apache], } File[''htpasswd_dir'']{ require => Package[apache], } } Something is missing! It should be linked ? Thanks Eric --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Digant C Kasundra
2009-Aug-20 17:31 UTC
[Puppet Users] Re: Howto understand the error message " Could not find class parent XXXXXXXX"? howto link it?
----- "Eric2" <e.lannaud@gmail.com> wrote:> Hi, > > err: Could not retrieve catalog: Could not find class parent > apache::package at /home/puppet/modules/apache/manifests/debian.pp:11 > on node ns0.mysite.org > > vi /home/puppet/modules/apache/manifests/debian.pp > ### debian > class apache::debian inherits apache::package { > $config_dir = ''/etc/apache2/'' > > file {"$vhosts_dir": > ensure => ''/etc/apache2/sites-enabled/'', > } > File[default_apache_index] { > path => ''/var/www/index.html'', > } > } <<<<<<<<<<<< line 11 > > In the same directory i have found in the file package.pp > # deploy apache as package > class apache::package inherits apache::base { > package { ''apache'': > name => ''apache'', > ensure => present, > } > File[''vhosts_dir'']{ > require => Package[apache], > } > File[''config_dir'']{ > require => Package[apache], > } > Service[''apache'']{ > require => Package[apache], > } > File[''default_apache_index'']{ > require => Package[apache], > } > File[''modules_dir'']{ > require => Package[apache], > } > File[''web_dir'']{ > require => Package[apache], > } > File[''htpasswd_dir'']{ > require => Package[apache], > } > } > > Something is missing! It should be linked ? Thanks EricYou don''t seem to be using modules. Are you doing an explicit import somewhere of all files in the manifests directory? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---