The Foreman gives Puppet a webgui interface, which is nice for daily routines. To get you kickstarted real quick I wrote a straight forward bash script which has
Modules are reusable, sharable units of Puppet code. Basics you need to know about modules you can find here. You can use any editor to edit your modules,