Hi Jose,
Thanks, that helped and worked for me.
Jyotir
On Sunday, 19 January 2014 15:42:12 UTC+5:30, jyotir bhandari wrote:
>
> 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/bafc2a1b-8652-4555-9716-c0f32f11ccdd%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.