Skip to content

Instantly share code, notes, and snippets.

@dzimine
Created December 22, 2015 06:23
Show Gist options
  • Save dzimine/66ca6dcd6ea0c0df0355 to your computer and use it in GitHub Desktop.
Save dzimine/66ca6dcd6ea0c0df0355 to your computer and use it in GitHub Desktop.
st2_test_ground DZ edition (see https://github.com/manasdk/st2-test-ground)
# -*- mode: ruby -*-
# vi: set ft=ruby :
hostname = ENV['HOSTNAME'] ? ENV['HOSTNAME'] : 'st2test'
ip_start=40
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.hostname = "#{hostname}"
config.vm.define "u14" do |u14|
u14.vm.box = 'puppetlabs/ubuntu-14.04-64-nocm'
u14.vm.network "private_network", ip: "172.168.90.#{ip_start+6}"
end
config.vm.define "el6" do |el6|
el6.vm.box = 'puppetlabs/centos-6.6-64-nocm'
el6.vm.network "private_network", ip: "172.168.90.#{ip_start+6}"
end
config.vm.define "el7" do |el7|
el7.vm.box = 'puppetlabs/centos-7.0-64-nocm'
el7.vm.network "private_network", ip: "172.168.90.#{ip_start+7}"
end
config.vm.provider :virtualbox do |vb|
vb.memory = 2048
vb.cpus = 2
end
# Mounts
config.vm.synced_folder "/Users/dzimine/Repo/StackStorm/puppet-st2", "/home/vagrant/puppet-st2", type: "nfs"
# Provision
# config.vm.provision "shell", inline: "curl -sSL http://stackstorm.com/install.sh | sudo su"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment