DRY up manifest applications
DRY up manifest applications

Refactor some duplicated code, and log all
manifest snippets as they are applied
to help with debugging.

waynr/puppetdb,highb/puppetdb,puppetlabs/puppetdb,shrug/puppetdb,mullr/puppetdb,rbrw/puppetdb,senior/puppetdb,senior/puppetdb,puppetlabs/puppetdb,kbarber/puppetdb,senior/puppetdb,kbrezina/puppetdb,rbrw/puppetdb,kbrezina/puppetdb,jantman/puppetdb,rbrw/puppetdb,wkalt/puppetdb,github/puppetlabs-puppetdb,highb/puppetdb,melissa/puppetdb,rbrw/puppetdb,waynr/puppetdb,highb/puppetdb,highb/puppetdb,grimradical/puppetdb,nfagerlund/puppetdb,kbarber/puppetdb,johnduarte/puppetdb,kbrezina/puppetdb,wkalt/puppetdb,puppetlabs/puppetdb,wkalt/puppetdb,kbarber/puppetdb,cprice404/puppetdb,melissa/puppetdb,shrug/puppetdb,nfagerlund/puppetdb,ajroetker/puppetdb,kbrezina/puppetdb,shrug/puppetdb,grimradical/puppetdb,johnduarte/puppetdb,cprice404/puppetdb,johnduarte/puppetdb,mullr/puppetdb,puppetlabs/puppetdb,mullr/puppetdb,grimradical/puppetdb,mullr/puppetdb,puppetlabs/puppetdb,shrug/puppetdb,melissa/puppetdb,grimradical/puppetdb,ajroetker/puppetdb,ajroetker/puppetdb,github/puppetlabs-puppetdb,ajroetker/puppetdb,waynr/puppetdb,senior/puppetdb,mullr/puppetdb,jantman/puppetdb,cprice404/puppetdb,github/puppetlabs-puppetdb,wkalt/puppetdb,waynr/puppetdb,kbarber/puppetdb,johnduarte/puppetdb,jantman/puppetdb,nfagerlund/puppetdb,rbrw/puppetdb