Sha256: 06f1318751701841685152751f2effe4acb11bdda88df62f7a68064158490e3d

Contents?: true

Size: 1.25 KB

Versions: 28

Compression:

Stored size: 1.25 KB

Contents

Vagrant.configure('2') do |config|
  env = ENV.to_hash
  config.vm.box = 'bosh-stemcell'
  config.ssh.username = 'ubuntu'

  config.vm.define :local do |local|
    local.vm.box_url = 'https://bosh-jenkins-artifacts.s3.amazonaws.com/bosh-vagrant-boxes/bosh-stemcell-virtualbox.box'
    local.vm.provider :virtualbox do |virtualbox|
      virtualbox.customize ['modifyvm', :id, '--cpus', '2']
      virtualbox.customize ['modifyvm', :id, '--memory', '2048']
    end
  end

  config.vm.define :remote do |remote|
    remote.vm.box_url = 'https://bosh-jenkins-artifacts.s3.amazonaws.com/bosh-vagrant-boxes/bosh-stemcell-aws.box'
    remote.vm.provider :aws do |aws, override|
      aws.instance_type = 'c1.medium'
      aws.access_key_id = env.fetch('BOSH_AWS_ACCESS_KEY_ID')
      aws.secret_access_key = env.fetch('BOSH_AWS_SECRET_ACCESS_KEY')
      aws.keypair_name = 'bosh'
      aws.security_groups = ['bosh-stemcell']
      aws.tags = { 'Name' => 'bosh-stemcell' }

      override.ssh.username = 'ubuntu'
      override.ssh.private_key_path = '~/.ssh/id_rsa_bosh'
    end
  end

  config.vm.provision :shell do |shell|
    shell.inline = <<-BASH
    sudo mkdir -p /mnt/stemcells
    sudo chown -R ubuntu /mnt/stemcells
    BASH
  end

  config.vm.synced_folder '../', '/bosh'
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
bosh-stemcell-1.5.0.pre.1209 Vagrantfile
bosh-stemcell-1.5.0.pre.1193 Vagrantfile
bosh-stemcell-1.5.0.pre.1190 Vagrantfile
bosh-stemcell-1.5.0.pre.1181 Vagrantfile
bosh-stemcell-1.5.0.pre.1179 Vagrantfile
bosh-stemcell-1.5.0.pre.1178 Vagrantfile
bosh-stemcell-1.5.0.pre.1177 Vagrantfile
bosh-stemcell-1.5.0.pre.1176 Vagrantfile
bosh-stemcell-1.5.0.pre.1173 Vagrantfile
bosh-stemcell-1.5.0.pre.1172 Vagrantfile
bosh-stemcell-1.5.0.pre.1168 Vagrantfile
bosh-stemcell-1.5.0.pre.1166 Vagrantfile
bosh-stemcell-1.5.0.pre.1165 Vagrantfile
bosh-stemcell-1.5.0.pre.1164 Vagrantfile
bosh-stemcell-1.5.0.pre.1154 Vagrantfile
bosh-stemcell-1.5.0.pre.1153 Vagrantfile
bosh-stemcell-1.5.0.pre.1152 Vagrantfile
bosh-stemcell-1.5.0.pre.1148 Vagrantfile
bosh-stemcell-1.5.0.pre.1145 Vagrantfile
bosh-stemcell-1.5.0.pre.1142 Vagrantfile