How to install a module from master to agent node?

32 views
Skip to first unread message

lalit jangra

unread,
Jan 8, 2013, 7:43:39 AM1/8/13
to puppet...@googlegroups.com
Hi,

I have a module which i have deployed under /opt/puppet/modules folder & i want to deploy it to agent node.

I tried using "puppet agent -t" but module was not installed. Can anybody help me on how to install a module from master to agent node?

Regards.

Peter Bukowinski

unread,
Jan 8, 2013, 8:34:20 AM1/8/13
to puppet...@googlegroups.com, puppet...@googlegroups.com
No modules or classes are applied by default so you will need to tell puppet what to do.

In this case, you can run the following from the agent (where module_class is the name of the class the module applies):

puppet apply -e 'include module_class'

Alternatively, you can put the following in site.pp and your node will pick up the module class automatically:

  include module_class
}

-- Peter (from phone)
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/F22Kq1vEnKgJ.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Reply all
Reply to author
Forward
0 new messages