Forge Home

exec

Multiple Linux commands can be exxecuted with the module very easily.

7,120 downloads

7,120 latest version

1.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.0 (latest)
released Apr 10th 2016

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'madhukarn-exec', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add madhukarn-exec
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install madhukarn-exec --version 0.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

madhukarn/exec — version 0.1.0 Apr 10th 2016

Puppet-Multi_Command_Module

A small Custom Module which is used to run multile linux commands easily . It uses exec type as backend.

One can execute linux commands with above custom module easily.

Usage:

  1. Copy the exec module init.pp file to the module directory of the puppetmaster or puppet agent

  2. Call the custom Module as below to execute mulitple commands

  3. We can use this module as a terminal as below

  4. Copy below code in site.pp file in puppetmaster/agent to execute the command on local/remote machines easily :-)

              ###################USAGE##############

                 exec::multi { 'Running multiple Linux Command':
                           commands => ["mkdir test1;mkdir test2","uptime","netstat","ping -c 2 <hostname/ip>"],
                             }


              ###################USAGE##############