Hi.

I've made a class in the $basemodulepath location --

puppet config print  | grep basemodulepath
basemodulepath = /etc/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules

ls -R /etc/puppetlabs/code/modules/all_class/
/etc/puppetlabs/code/modules/all_class/:
manifests

/etc/puppetlabs/code/modules/all_class/manifests:
dep.pp  first_class.pp

Contents of first_class.pp -- 
class first_class {
        file { '/tmp/fclass.txt':
                ensure => present,
                owner => de,
                group => de,
        }
        file { '/tmp/procs':
                ensure => directory,
                source => ['puppet:///modules/filesmmodule/proc_files/'],
                owner => de, 
                group => root,
                mode => '700',
                recurse => true
        }
        file {'/tmp/procs/cpuinfo':
                ensure => present,
                owner => de,
                group => de,
        }
        require Class["dep"]
}

Contents of dep.pp ---
class dep {
        file { '/tmp/dep_file':  
                ensure => present,
                owner => de
        }
}

When I call the class from the main manifest -- 

Error: Evaluation Error: Error while evaluating a Resource Statement, Could 
not find declared class first_class at /etc/puppetlabs/code/environments/
production/manifests/default.pp:1:1 on node desktopminer

It does not help if I define the class in $modulepath

Thanks for any help.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/b0c4b1d7-7972-4a8e-aa71-ac2930a29513%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to