I''m having a basic newbie issue, I''m unable to get the node
controllernode.vps.net to inherit the class ntp and controller node as
defined. All controllernode.vps.net is able to import from puppet is
the hosts module..I''m gessing it only imports the hosts module because
it is defined in the default node under site.pp
-------------------------------------------------------------------
[root@puppet manifests]# cat nodes.pp
node basenode {
include hosts
include ntp
}
node ''controllernode.vps.net'' inherits basenode{
include controllernode
}
----------------------------------------------------------------------
[root@puppet manifests]# cat site.pp
node default {
include hosts
}
----------------------------------------------------------------------
[root@puppet manifests]# cat modules.pp
import "ntp"
import "controllernode"
---------------------------------------------------------------------
[root@puppet puppet]# cd modules/
[root@puppet modules]# tree
.
├── controllernode
│ ├── files
│ └── manifests
│ └── init.pp
├── hosts
│ ├── files
│ │ └── hosts
│ └── manifests
│ └── init.pp
---------------------------------------------------------------------------
Any idea why controllernode.vps.net is not importing the
controllernode module?
Thanks
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Hi, On 02/04/2012 04:16 PM, eldorado554 wrote:> Any idea why controllernode.vps.net is not importing the > controllernode module?your basic ideas are sound, but there is a conceptual misunderstanding: You cannot "include <module>". Instead, you have to include a *class* from the module. E.g. "include controllernode::bootstrap", and the module contains a class controllernode::bootstrap { }. Also, if the class is in manifests/init.pp or manifests/<classname>.pp, you need no ''import "controllernode"'', and using it anyway is in fact discouraged. HTH, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.