Пример #1
0
def deploy():
    install_deps()

    sudo('test -e /var/lib/pgsql/data/pg_hba.conf || postgresql-setup initdb')
    enable_services(['memcached', 'postgresql'])

    with settings(warn_only=True, sudo_user='******'):
        sudo('createuser {0}'.format(env.user))
        sudo('createdb --owner={0} vmdb_development'.format(env.user))

    run('type bundle 2>/dev/null || gem install bundler -v "~>1.3"')
    run('test -d manageiq || git clone https://github.com/ManageIQ/manageiq')

    with cd('manageiq/vmdb'):
        run('bundle install --without qpid')

    with cd('manageiq'):
        run('vmdb/bin/rake build:shared_objects')

    with cd('manageiq/vmdb'):
        run('bundle install --without qpid')
        run('cp config/database.pg.yml config/database.yml')
        sed('config/database.yml',
            'username: root', 'username: {0}'.format(env.user))
        run('bin/rake db:migrate')

    enable_tcp_ports([3000])
Пример #2
0
def deploy(proxy=''):
    install_deps()

    enable_services(['docker.socket'])
    enable_tcp_ports([8443, 8444])

    sudo('usermod -a -G docker {0}'.format(env.user))
    run('test -d origin || git clone https://github.com/openshift/origin.git')
Пример #3
0
def deploy():
    install_deps()

    enable_services(['docker.service'])
    enable_tcp_ports([8443, 8444])

    sudo('usermod -aG root {0}'.format(env.user))

    run('test -d origin || git clone https://github.com/openshift/origin.git')
Пример #4
0
def deploy(proxy=''):
    install_packages(['kubernetes'])
    enable_services(['docker.socket',
                     'etcd.service',
                     'kube-apiserver.service',
                     'kube-controller-manager.service',
                     'kube-proxy.service',
                     'kube-scheduler.service',
                     'kubelet.service'])
Пример #5
0
def deploy(proxy=''):
    install_packages(['kubernetes'], proxy=proxy)
    enable_services(['docker.socket',
                     'etcd.service',
                     'kube-apiserver.service',
                     'kube-controller-manager.service',
                     'kube-proxy.service',
                     'kube-scheduler.service',
                     'kubelet.service'])