Version information
released Apr 10th 2016
Start using this module
Add this module to your Puppetfile:
mod 'madhukarn-exec', '0.1.0'
Learn more about managing modules with a PuppetfileDocumentation
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:
-
Copy the exec module init.pp file to the module directory of the puppetmaster or puppet agent
-
Call the custom Module as below to execute mulitple commands
-
We can use this module as a terminal as below
-
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##############