示例#1
0
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
示例#2
0
文件: rest.py 项目: pathcl/seedBank
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
示例#3
0
def puppet_manifests():
    """return a gzipped tar archive with all puppet manifests"""
    result = utils.tar_gz_directory(cfg['paths']['puppet_manifests'])
    return result
示例#4
0
文件: rest.py 项目: pathcl/seedBank
def puppet_manifests():
    """return a gzipped tar archive with all puppet manifests"""
    result = utils.tar_gz_directory(cfg['paths']['puppet_manifests'])
    return result