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.ppimport 'nodes.pp'
nodes.ppnode '
server.puppet.com' {
}
node '
client1.puppet.com' {
}
node '
client2.puppet.com' {
include nmap
}
nmap.ppclass nmap {
case $operatingsystem {
centos, redhat: {
package { "nmap":
ensure => installed,
}
}
debian, ubuntu: {
package { "nmap":
ensure => installed,
}
}
}
}
error on puppet clientError: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class nmap for
client2.puppet.com on node
client2.puppet.comWarning: Not using cache on failed catalogr
Error: Could not retrieve catalog; skipping run
Jyotir