Vagrant.configure(2) do |config| # These are old instances. # Before bringing them back, reset the `vagrant` user to be `perforce` in the boxes. # # The build environment expects to be managed by the 'master' VM already # # configured. # config.vm.define 'build-ubuntu12' do |vagrant| # vagrant.vm.hostname = 'build-ubuntu12' # vagrant.vm.box = 'ubuntu-12-04-x64-vmware' # vagrant.vm.box_url = 'boxes/ubuntu-12-04-x64-vmware.box' # vagrant.vm.network :private_network, ip: '172.16.100.10' # # Do not use a shared folder. We will fetch sources in other ways. # vagrant.vm.synced_folder ".", "/vagrant", disabled: true # vagrant.vm.provider 'vmware_fusion' do |v| # v.gui = true # v.vmx['memsize'] = '4096' # v.vmx['numvcpus'] = '4' # end # vagrant.vm.provision :shell, path: "shell/install_build_dependencies.sh" # vagrant.vm.provision :shell, path: "shell/install_perforce-server.sh" # vagrant.vm.provision :shell, path: "shell/install_rvm.sh", args: "stable", privileged: false # vagrant.vm.provision :shell, path: "shell/install_jdk.sh" # vagrant.vm.provision :shell, path: "shell/create_ssh_key.sh", privileged: false # end # config.vm.define 'build-ubuntu14' do |vagrant| # vagrant.vm.hostname = 'build-ubuntu14' # vagrant.vm.box = 'ubuntu-14-04-x64-vmware' # vagrant.vm.box_url = 'boxes/ubuntu-14-04-x64-vmware.box' # vagrant.vm.network :private_network, ip: '172.16.100.11' # # Do not use a shared folder. We will fetch sources in other ways. # vagrant.vm.synced_folder ".", "/vagrant", disabled: true # vagrant.vm.provider 'vmware_fusion' do |v| # v.gui = true # v.vmx['memsize'] = '4096' # v.vmx['numvcpus'] = '4' # end # vagrant.vm.provision :shell, path: "shell/install_build_dependencies.sh" # vagrant.vm.provision :shell, path: "shell/install_rvm.sh", args: "stable", privileged: false # vagrant.vm.provision :shell, path: "shell/install_jdk.sh" # vagrant.vm.provision :shell, path: "shell/create_ssh_key.sh", privileged: false # end config.vm.define 'build-centos6' do |vagrant| vagrant.ssh.username = 'perforce' vagrant.ssh.password = 'PASSWORD' vagrant.vm.hostname = 'build-centos6' vagrant.vm.box = 'centos-6-7-x64-vmware' vagrant.vm.box_url = 'boxes/centos-6-7-x64-vmware.box' vagrant.vm.network :private_network, ip: '172.16.100.12' # Do not use a shared folder. We will fetch sources in other ways. vagrant.vm.synced_folder ".", "/vagrant", disabled: true vagrant.vm.provider 'vmware_fusion' do |v| v.gui = true v.vmx['memsize'] = '2096' v.vmx['numvcpus'] = '2' end vagrant.vm.provision :shell, inline: 'iptables -F' vagrant.vm.provision :shell, path: "shell/setup-perforce-package-repo_centos6.sh" vagrant.vm.provision :shell, inline: 'yum update -y' vagrant.vm.provision :shell, path: "shell/install_build_dependencies-centos.sh" vagrant.vm.provision :shell, path: "shell/install_jdk-centos.sh" vagrant.vm.provision :shell, path: "shell/configure-nfs.sh" vagrant.vm.provision :shell, path: "shell/create-group_commander.sh" vagrant.vm.provision :shell, path: "shell/create-user_ecagent_centos6.sh" vagrant.vm.provision :shell, path: "shell/create-user_hwsbuild_centos6.sh" end end