Exemplo n.º 1
0
def deploy_jenkins():
    package_dirs = ['zamboni', 'venv']
    if os.path.isdir(os.path.join(ROOT, 'aeskeys')):
        package_dirs.append('aeskeys')

    rpm = helpers.build_rpm(name='zamboni',
                            env=settings.ENV,
                            cluster=settings.CLUSTER,
                            domain=settings.DOMAIN,
                            root=ROOT,
                            package_dirs=package_dirs)

    execute(disable_cron)

    rpm.local_install()

    managecmd('migrate --noinput')

    rpm.remote_install(['web', 'celery'])

    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
    execute(update_celery)
    execute(install_cron, rpm.install_to)

    managecmd('cron cleanup_validation_results')

    rpm.clean()
Exemplo n.º 2
0
def deploy_jenkins():
    package_dirs = ['solitude', 'venv']
    if os.path.isdir(os.path.join(ROOT, 'aeskeys')):
        package_dirs.append('aeskeys')

    r = helpers.build_rpm(name='solitude',
                          env=settings.ENV,
                          cluster=settings.CLUSTER,
                          domain=settings.DOMAIN,
                          root=ROOT,
                          package_dirs=package_dirs)

    r.local_install()
    install_path = os.path.join(r.install_to, 'solitude')

    update_db(install_path)

    r.remote_install(['web'])

    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))

    execute(install_cron, r.install_to)
    with lcd(install_path):
        local('../venv/bin/python manage.py statsd_ping --key=update')

    r.clean()
Exemplo n.º 3
0
def deploy_jenkins():
    package_dirs = ['zamboni', 'venv']
    if os.path.isdir(os.path.join(ROOT, 'aeskeys')):
        package_dirs.append('aeskeys')

    rpm = helpers.build_rpm(name='zamboni',
                            env=settings.ENV,
                            cluster=settings.CLUSTER,
                            domain=settings.DOMAIN,
                            root=ROOT,
                            package_dirs=package_dirs)

    execute(disable_cron)

    rpm.local_install()

    managecmd('migrate')

    rpm.remote_install(['web', 'celery'])

    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
    execute(update_celery)
    execute(install_cron, rpm.install_to)

    managecmd('cron cleanup_validation_results')

    rpm.clean()
Exemplo n.º 4
0
def deploy_jenkins():
    package_dirs = ['solitude', 'venv']
    if os.path.isdir(os.path.join(ROOT, 'aeskeys')):
        package_dirs.append('aeskeys')

    r = helpers.build_rpm(name='solitude',
                          env=settings.ENV,
                          cluster=settings.CLUSTER,
                          domain=settings.DOMAIN,
                          root=ROOT,
                          package_dirs=package_dirs)

    r.local_install()
    install_path = os.path.join(r.install_to, 'solitude')

    update_db(install_path)

    r.remote_install(['web'])

    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))

    execute(install_cron, r.install_to)
    with lcd(install_path):
        local('../venv/bin/python manage.py statsd_ping --key=update')

    r.clean()
Exemplo n.º 5
0
def deploy():
    helpers.deploy(name='trunion',
                   env='{0}-{1}'.format(settings.ENV, settings.APPNAME),
                   cluster=settings.CLUSTER,
                   domain=settings.DOMAIN,
                   root=ROOT,
                   package_dirs=['trunion', 'venv', 'ssl'])
    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
Exemplo n.º 6
0
def deploy():
    helpers.deploy(name='trunion',
                   env='{0}-{1}'.format(settings.ENV, settings.APPNAME),
                   cluster=settings.CLUSTER,
                   domain=settings.DOMAIN,
                   root=ROOT,
                   package_dirs=['trunion', 'venv', 'ssl'])
    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
Exemplo n.º 7
0
def deploy():
    helpers.deploy(name='geodude',
                   env=settings.ENV,
                   cluster=settings.CLUSTER,
                   domain=settings.DOMAIN,
                   root=ROOT,
                   package_dirs=['geodude', 'venv'])

    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
Exemplo n.º 8
0
def deploy():
    helpers.deploy(name=settings.PROJECT_NAME,
                   app_dir='frappe',
                   env=settings.ENV,
                   cluster=settings.CLUSTER,
                   domain=settings.DOMAIN,
                   package_dirs=['frappe', 'venv'],
                   root=ROOT)

    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
Exemplo n.º 9
0
def deploy():
    helpers.deploy(name=settings.PROJECT_NAME,
                   app_dir='frappe',
                   env=settings.ENV,
                   cluster=settings.CLUSTER,
                   domain=settings.DOMAIN,
                   package_dirs=['frappe', 'venv'],
                   root=ROOT)

    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
Exemplo n.º 10
0
def deploy_web():
    helpers.deploy(name='olympia',
                   env=settings.ENV,
                   cluster=settings.CLUSTER,
                   domain=settings.DOMAIN,
                   root=ROOT,
                   use_yum=False,
                   package_dirs=['olympia', 'venv'])

    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
Exemplo n.º 11
0
def deploy_web():
    rpmbuild = helpers.deploy(name='zamboni',
                              env=settings.ENV,
                              cluster=settings.CLUSTER,
                              domain=settings.DOMAIN,
                              root=ROOT,
                              use_yum=False,
                              package_dirs=['zamboni', 'venv'])

    execute(restart_workers)
    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
Exemplo n.º 12
0
def deploy_web():
    rpmbuild = helpers.deploy(name='zamboni',
                              env=settings.ENV,
                              cluster=settings.CLUSTER,
                              domain=settings.DOMAIN,
                              root=ROOT,
                              use_yum=False,
                              package_dirs=['zamboni', 'venv'])

    execute(restart_workers)
    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
Exemplo n.º 13
0
def deploy():
    helpers.deploy(
        name='monolith',
        env=settings.ENV,
        cluster=settings.CLUSTER,
        domain=settings.DOMAIN,
        root=ROOT,
        deploy_roles=['web'],
        package_dirs=['monolith', 'venv'])

    helpers.restart_uwsgi(getattr(settings, 'UWSGI', ['monolith']))
Exemplo n.º 14
0
def deploy():
    helpers.deploy(name='addon_registration',
                   env=settings.ENV,
                   cluster=settings.CLUSTER,
                   domain=settings.DOMAIN,
                   root=ROOT,
                   deploy_roles=['web', 'celery'],
                   package_dirs=['addon_registration', 'venv'])

    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
    execute(update_celery)
Exemplo n.º 15
0
def deploy():
    helpers.deploy(name='webpay',
                   env=settings.ENV,
                   cluster=settings.CLUSTER,
                   domain=settings.DOMAIN,
                   root=ROOT,
                   deploy_roles=['web', 'celery'],
                   package_dirs=['webpay', 'venv'])

    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
    execute(update_celery)
Exemplo n.º 16
0
def deploy_jenkins():
    rpm = helpers.build_rpm(name='geodude',
                            env=settings.ENV,
                            cluster=settings.CLUSTER,
                            domain=settings.DOMAIN,
                            package_dirs=['geodude', 'venv'],
                            root=ROOT)

    rpm.local_install()
    rpm.remote_install(['web'])
    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
Exemplo n.º 17
0
def deploy():
    helpers.deploy(
        name=settings.PROJECT_NAME,
        app_dir="frappe",
        env=settings.ENV,
        cluster=settings.CLUSTER,
        domain=settings.DOMAIN,
        package_dirs=["frappe", "venv"],
        root=ROOT,
    )

    helpers.restart_uwsgi(getattr(settings, "UWSGI", []))
Exemplo n.º 18
0
def deploy():
    rpmbuild = helpers.deploy(name='olympia',
                              env=settings.ENV,
                              cluster=settings.CLUSTER,
                              domain=settings.DOMAIN,
                              root=ROOT,
                              deploy_roles=['web', 'celery'],
                              package_dirs=['olympia', 'venv'])

    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
    execute(update_celery)
    execute(install_cron, rpmbuild.install_to)
    managecmd('cron cleanup_validation_results')
Exemplo n.º 19
0
def deploy_jenkins():
    rpm = helpers.build_rpm(name=settings.PROJECT_NAME,
                            app_dir='frappe',
                            env=settings.ENV,
                            cluster=settings.CLUSTER,
                            domain=settings.DOMAIN,
                            package_dirs=['frappe', 'venv'],
                            root=ROOT)

    rpm.local_install()
    execute(syncdb, os.path.join(rpm.install_to, 'frappe', 'src'))
    rpm.remote_install(['web'])
    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
Exemplo n.º 20
0
def deploy_jenkins():
    rpm = helpers.build_rpm(
        name=settings.PROJECT_NAME,
        app_dir="frappe",
        env=settings.ENV,
        cluster=settings.CLUSTER,
        domain=settings.DOMAIN,
        package_dirs=["frappe", "venv"],
        root=ROOT,
    )

    rpm.local_install()
    execute(syncdb, os.path.join(rpm.install_to, "frappe", "src"))
    rpm.remote_install(["web"])
    helpers.restart_uwsgi(getattr(settings, "UWSGI", []))
Exemplo n.º 21
0
def deploy_jenkins():
    rpm = helpers.build_rpm(name='webpay',
                            env=settings.ENV,
                            cluster=settings.CLUSTER,
                            domain=settings.DOMAIN,
                            root=ROOT,
                            package_dirs=['webpay', 'venv'])

    rpm.local_install()

    rpm.remote_install(['web', 'celery'])

    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
    execute(update_celery)

    rpm.clean()
Exemplo n.º 22
0
def deploy_jenkins():
    rpm = helpers.build_rpm(name='webpay',
                            env=settings.ENV,
                            cluster=settings.CLUSTER,
                            domain=settings.DOMAIN,
                            root=ROOT,
                            package_dirs=['webpay', 'venv'])

    rpm.local_install()

    rpm.remote_install(['web', 'celery'])

    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
    execute(update_celery)

    rpm.clean()
Exemplo n.º 23
0
def deploy():
    package_dirs = ['zamboni', 'venv']
    if os.path.isdir(os.path.join(ROOT, 'aeskeys')):
        package_dirs.append('aeskeys')

    rpmbuild = helpers.deploy(name='zamboni',
                              env=settings.ENV,
                              cluster=settings.CLUSTER,
                              domain=settings.DOMAIN,
                              root=ROOT,
                              deploy_roles=['web', 'celery'],
                              package_dirs=package_dirs)

    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
    execute(update_celery)
    execute(install_cron, rpmbuild.install_to)
    managecmd('cron cleanup_validation_results')
Exemplo n.º 24
0
def deploy():
    package_dirs = ['solitude', 'venv']
    if os.path.isdir(os.path.join(ROOT, 'aeskeys')):
        package_dirs.append('aeskeys')

    r = helpers.deploy(name='solitude',
                       env=settings.ENV,
                       cluster=settings.CLUSTER,
                       domain=settings.DOMAIN,
                       root=ROOT,
                       package_dirs=package_dirs)

    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))

    execute(install_cron, r.install_to)
    with lcd(SOLITUDE):
        local('%s manage.py statsd_ping --key=update' % PYTHON)
Exemplo n.º 25
0
def deploy():
    package_dirs = ['solitude', 'venv']
    if os.path.isdir(os.path.join(ROOT, 'aeskeys')):
        package_dirs.append('aeskeys')

    r = helpers.deploy(name='solitude',
                       env=settings.ENV,
                       cluster=settings.CLUSTER,
                       domain=settings.DOMAIN,
                       root=ROOT,
                       package_dirs=package_dirs)

    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))

    execute(install_cron, r.install_to)
    with lcd(SOLITUDE):
        local('%s manage.py statsd_ping --key=update' % PYTHON)
Exemplo n.º 26
0
def deploy():
    package_dirs = ['zamboni', 'venv']
    if os.path.isdir(os.path.join(ROOT, 'aeskeys')):
        package_dirs.append('aeskeys')

    rpmbuild = helpers.deploy(name='zamboni',
                              env=settings.ENV,
                              cluster=settings.CLUSTER,
                              domain=settings.DOMAIN,
                              root=ROOT,
                              deploy_roles=['web', 'celery'],
                              package_dirs=package_dirs)

    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
    execute(update_celery)
    execute(install_cron, rpmbuild.install_to)
    managecmd('cron cleanup_validation_results')
Exemplo n.º 27
0
def deploy():
    package_dirs = ["zamboni", "venv"]
    if os.path.isdir(os.path.join(ROOT, "aeskeys")):
        package_dirs.append("aeskeys")

    rpmbuild = helpers.deploy(
        name="zamboni",
        env=settings.ENV,
        cluster=settings.CLUSTER,
        domain=settings.DOMAIN,
        root=ROOT,
        deploy_roles=["web", "celery"],
        package_dirs=package_dirs,
    )

    helpers.restart_uwsgi(getattr(settings, "UWSGI", []))
    execute(update_celery)
    execute(install_cron, rpmbuild.install_to)
    managecmd("cron cleanup_validation_results")
Exemplo n.º 28
0
def deploy_jenkins():
    rpmbuild = helpers.build_rpm(name='olympia',
                                 env=settings.ENV,
                                 cluster=settings.CLUSTER,
                                 domain=settings.DOMAIN,
                                 root=ROOT,
                                 package_dirs=['olympia', 'venv'])

    rpmbuild.local_install()

    install_dir = os.path.join(rpmbuild.install_to, 'olympia')
    execute(schematic, install_dir)
    managecmd('dump_apps', install_dir)

    rpmbuild.remote_install(['web', 'celery'])
    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))

    execute(update_celery)
    execute(install_cron, rpmbuild.install_to)
    managecmd('cron cleanup_validation_results')
Exemplo n.º 29
0
def deploy_jenkins():
    rpmbuild = helpers.build_rpm(name='olympia',
                                 env=settings.ENV,
                                 cluster=settings.CLUSTER,
                                 domain=settings.DOMAIN,
                                 root=ROOT,
                                 package_dirs=['olympia', 'venv'])

    rpmbuild.local_install()

    install_dir = os.path.join(rpmbuild.install_to, 'olympia')
    execute(schematic, install_dir)
    managecmd('dump_apps', install_dir)

    rpmbuild.remote_install(['web', 'celery'])
    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))

    execute(update_celery)
    execute(install_cron, rpmbuild.install_to)
    managecmd('cron cleanup_validation_results')

    rpmbuild.clean()
Exemplo n.º 30
0
def cron():
    update()
    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
Exemplo n.º 31
0
def cron():
    fill_data()
    modelcrafter()
    helpers.restart_uwsgi(getattr(settings, 'UWSGI', []))
Exemplo n.º 32
0
def cron():
    fill_data()
    modelcrafter()
    helpers.restart_uwsgi(getattr(settings, "UWSGI", []))