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')
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")
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)
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)