digital_ocean.tpl 818 Bytes
Newer Older
Noe Nieto's avatar
Noe Nieto committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Vagrant.configure("2") do |config|
    config.vm.hostname = '{hostname}'
    config.vm.define '{hostname}' do |config|
        config.vm.provider :digital_ocean do |provider, override|
            override.ssh.private_key_path = '~/.ssh/shipwright/id_rsa'
            override.vm.box = 'digital_ocean'
            override.vm.box_url = "https://github.com/devopsgroup-io/vagrant-digitalocean/raw/master/box/digital_ocean.box"
            override.nfs.functional = false
            provider.ssh_key_name = 'Shipwright-{username}'
            provider.token = '{do_token}'
            provider.image = "debian-9-x64"
            provider.region = 'sfo2'
            provider.size = '512mb'
        end
        config.vm.provision "ansible" do |ansible|
            ansible.playbook = "shim.yml"
        end
    end
end