Esempio n. 1
0
def ubuntu_install_cloudfoundry(master, *args, **kwargs):
    # DEPS, TODO: @depends(['go', 'bosh', 'vagrant'])
    command = 'go'
    if cmd_avail(command):
        local('echo {command} is already installed'.format(command=command))
    else:
        install_go()

    command = 'bosh'
    if cmd_avail(command):
        local('echo {command} is already installed'.format(command=command))
    else:
        ubuntu_actually_install_bosh(master)

    sudo('gem install bundler')
    loc_0 = 'deployments'
    run('mkdir {loc}'.format(loc=loc_0))
    with cd(loc_0):
        loc_1 = 'cf-example'
        run('mkdir {loc}'.format(loc=loc_0))
        with cd(loc_1):
            run('touch Gemfile')
            run('''source 'https://rubygems.org'
ruby "1.9.3"
gem "bosh_cli_plugin_aws"
            ''')
            run('bundle install')
Esempio n. 2
0
def ubuntu_install_cloudfoundry(master, *args, **kwargs):
    # DEPS, TODO: @depends(['go', 'bosh', 'vagrant'])
    command = "go"
    if cmd_avail(command):
        local("echo {command} is already installed".format(command=command))
    else:
        install_go()

    command = "bosh"
    if cmd_avail(command):
        local("echo {command} is already installed".format(command=command))
    else:
        ubuntu_actually_install_bosh(master)

    sudo("gem install bundler")
    loc_0 = "deployments"
    run("mkdir {loc}".format(loc=loc_0))
    with cd(loc_0):
        loc_1 = "cf-example"
        run("mkdir {loc}".format(loc=loc_0))
        with cd(loc_1):
            run("touch Gemfile")
            run("""source 'https://rubygems.org'
ruby "1.9.3"
gem "bosh_cli_plugin_aws"
            """)
            run("bundle install")
Esempio n. 3
0
def ubuntu_install_bosh(master, *args, **kwargs):
    # DEPS, TODO: @depends(['go', 'bosh', 'vagrant'])
    command = "go"
    if cmd_avail(command):
        local("echo {command} is already installed".format(command=command))
    else:
        install_go()

    command = "bosh"
    if cmd_avail(command):
        local("echo {command} is already installed".format(command=command))
    else:
        ubuntu_actually_install_bosh(master)
Esempio n. 4
0
def ubuntu_install_bosh(master, *args, **kwargs):
    # DEPS, TODO: @depends(['go', 'bosh', 'vagrant'])
    command = 'go'
    if cmd_avail(command):
        local('echo {command} is already installed'.format(command=command))
    else:
        install_go()

    command = 'bosh'
    if cmd_avail(command):
        local('echo {command} is already installed'.format(command=command))
    else:
        ubuntu_actually_install_bosh(master)