def omnibus(env):
    ctx = {
        'filename': '%(path)s/install-chef.sh' % chef,
        'url': 'http://opscode.com/chef/install.sh',
    }
    if not files.exists(ctx['filename']):
        env.safe_sudo('wget -O %(filename)s %(url)s' % ctx)
        with cd(chef.path):
            env.safe_sudo('bash install-chef.sh')
Use it to explicitly use master on next request to your app.
dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/config_management/chef.py/omnibus--crossover with--dataset/ETHPy150Open yandex/django_replicated/django_replicated/middleware.py/ReplicationMiddleware.set_force_master_cookie