----- "Eric2" <[email protected]> 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 Eric
You 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---