generic puppet validation macro and job template

Being used for mediawiki/vagrant.git

Change-Id: Ie739e2e1793137bbea03ef5729ed56a9f54bb35c