def overlay(address): """apply templates to a file overlay and return it a gzipped tar archive""" pxe_vars = settings.pxe_variables(cfg, address) overlay = pimp.Overlay(cfg, pxe_vars['overlay'], pxe_vars['fqdn']) overlay.prepare(pxe_vars) permissions = pimp.OverlayPermissions(cfg) permissions.script(overlay.dst, pxe_vars['overlay'], '/target') result = utils.tar_gz_directory(overlay.dst) return result
def puppet_manifests(): """return a gzipped tar archive with all puppet manifests""" result = utils.tar_gz_directory(cfg['paths']['puppet_manifests']) return result