Hi

I am trying to install package, which i was able to install if I kept the 
pp file in manifests and then importing via site.pp, but not working when i 
put it in module directory and then including class in nodes.pp

*On puppet master*

[root@server puppet]# tree
.
|-- auth.conf
|-- fileserver.conf
|-- manifests
|   |-- nodes.pp
|   `-- site.pp
|-- modules
|   `-- packages
|       `-- manifests
|           `-- nmap.pp
`-- puppet.conf


*site.pp*

import 'nodes.pp'

*nodes.pp*

node 'server.puppet.com' {
    }

node 'client1.puppet.com' {
    }

node 'client2.puppet.com' {
    include nmap
    }


*nmap.pp*


class nmap {
case $operatingsystem {
        centos, redhat: {
        package { "nmap":
        ensure => installed,
        }
      }
        debian, ubuntu: {
        package { "nmap":
        ensure => installed,
        }
      }
     }
    }



*error on puppet client*

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Could not find class nmap for client2.puppet.com on node client2.puppet.com
Warning: Not using cache on failed catalogr
Error: Could not retrieve catalog; skipping run


Jyotir

-- 
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/21dd6149-0a31-4f01-b9c3-f6d33356274b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to