If you’re looking for a simple, quick starter guide to setting up a basic Puppet master/agent between VM’s then you should take a look at this blog I came across from a Google search. I’m putting this here as a bookmark to myself:
http://www.6tech.org/2013/01/how-to-install-puppet-open-source-on-centos-6-3/
Edit:
Pushing an example shell script to some agents (puppetnode):
[master ~]# cat /etc/puppet/manifests/site.pp node "puppetnode" { file { "/usr/local/bin/repoconf.sh" : mode => 0755, owner => root, group => root, source => "puppet:///modules/bin/repoconf.sh" } exec { "/usr/local/bin/repoconf.sh" : require => File["/usr/local/bin/repoconf.sh"] } package { "nc" : ensure => latest, require => Exec["/usr/local/bin/repoconf.sh"] } }
[master ~]# cat /etc/puppet/modules/bin/files/repoconf.sh #!/bin/bash echo `date` >> /tmp/custom.puppet.sh.log
[puppetnode ~]# puppet agent -t Info: Retrieving plugin Info: Caching catalog for puppetnode Info: Applying configuration version '1386822999' Notice: /Stage[main]/Main/Node[puppetnode]/File[/usr/local/bin/repoconf.sh]/ensure: defined content as '{md5}dfd896a6b7b57885fac7bac43f2bd263' Notice: /Stage[main]/Main/Node[puppetnode]/Exec[/usr/local/bin/repoconf.sh]/returns: executed successfully Notice: /Stage[main]/Main/Node[puppetnode]/Package[nc]/ensure: created Notice: Finished catalog run in 6.84 seconds