예제 #1
0
def build_packages():
    """ uploads the list of packages and tells poudriere to build them"""
    # TODO: create ZFS snapshot before each build? (use ports version somehow to label it)
    default_vars = _default_vars('poudriere.yml')
    pkg_list = default_vars['pkg_list']
    fab.put(_local_path('setup/roles/poudriere/files/pkg_list'), pkg_list)
    fab.run('poudriere bulk -f %s -j 92amd64' % pkg_list)
예제 #2
0
def bootstrap(**kwargs):
    """call mr.awsome.ezjail's bootstrap """
    with fab.lcd(_local_path('setup/vm-master')):
        _bootstrap(**kwargs)
예제 #3
0
def upload_packages():
    _rsync_project(remote_dir='/usr/jails/basejail/poudriere_data/packages/',
        local_dir=_local_path('downloads/packages/'),
        delete=False, upload=True)
예제 #4
0
def upload_ports_tree():
	""" download poudriere's ports tree """
	_rsync_project(remote_dir='/usr/local/poudriere/ports/default/',
        local_dir=_local_path('downloads/default/'),
        delete=False, upload=True)
예제 #5
0
def upload_distfiles():
    _rsync_project(remote_dir='/usr/local/poudriere/distfiles/',
        local_dir=_local_path('downloads/distfiles/'),
        delete=True, upload=True)