But the password doesn't work, see User Password Management Fails in Puppet for reason.
You have to modify password for user 'gcp' manually.
The type of network is written as "bridged" in api version 1 style.
Create multiple VMs
To specify hostname, memory size and some other parameters of each VM, modify Vagrantfile like this:
config.vm.define "bvtserver" do |bvtserver|
bvtserver.vm.hostname = "bvt-server"
bvtserver.vm.network :public_network
bvtserver.vm.provision :shell, path: "bvtprov.sh"
end
config.vm.define "production" do |production|
production.vm.hostname = "gcp-server"
production.vm.network :public_network
production.vm.provision :puppet
production.vm.provider :virtualbox do |vbox|
vbox.customize ["modifyvm", :id, "--name", "ProductEnv", "--memory", 1024]
end
end
end
And add a shell script for provisioning of bvt server:
$ cat bvtprov.sh
echo "You can do some provisioning here"