How to install a Puppet module

Home > Search > How-to
  by

To distribute software to one or more Puppet Agents, a module will need to be installed on the Puppet Master. In this example, Nano will be installed on the Puppet Master.

 

Search the Puppet forge for the module you want to install. In this example, a search is done with keyword nano.

 

Similarly, the puppet module search keyword command can be used.

[root@server1 ~]# puppet module search nano
NAME                DESCRIPTION                          AUTHOR          KEYWORDS
cornfeedhobo-nano   Install nano with handy syntax ...   @cornfeedhobo   nano editor
rjw1-nano           nano must die                        @rjw1           nano
pdxcat-singleton    Singleton Resource Functions f ...   @pdxcat         packages
cnacorrea-bash      This module is meant to manage ...   @cnacorrea      bash profile

 

The puppet module install module_name command can be used to install a module, on the Puppet Master. In this example, the cornfeedhobo-nano module is installed.

[root@server1 ~]# puppet module install cornfeedhobo-nano
Notice: Preparing to install into /etc/puppetlabs/code/environment/production/modules...
Notice: Downloading from https://forgeapi.puppet.com...
Notice: Installing -- do not interupt...
/etc/puppetlabs/code/environments/production/modules
- cornfeedhobo-nano (v0.1.0)
-- puppetlabs-stdlib (v4.17.0)

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments