This repository has been archived by the owner on Jan 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile_pairing
36 lines (33 loc) · 2.11 KB
/
Vagrantfile_pairing
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# https://app.vagrantup.com/cwolff/boxes/centos7
# config.vm.box = "cwolff/centos7"
# https://app.vagrantup.com/ralfkrause/boxes/centos7
config.vm.box = "ralfkrause/centos7"
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.manage_guest = true
config.vm.provision "shell", name: "package_udates", inline: "yum update -y"
config.vm.provision "shell", name: "development_tools", inline: "yum groupinstall -y 'Development Tools'"
config.vm.provision "shell", name: "install_openjdk", inline: "yum install -y java-1.8.0-openjdk-devel"
config.vm.provision "shell", name: "install_ruby", inline: "yum install -y ruby"
config.vm.provision "shell", name: "enable_epel", inline: "yum install -y epel-release"
config.vm.provision "shell", name: "install_molecule_prereq", inline: "yum install -y gcc python-pip python-devel openssl-devel libselinux-python"
config.vm.provision "shell", name: "upgrade_pip", inline: "pip install --upgrade pip"
config.vm.provision "shell", name: "install_molecule", inline: "runuser -l vagrant -c 'pip install --user molecule docker'"
config.vm.provision "shell", name: "additional_tools", inline: "yum install -y jq wget net-tools"
# config.vm.provision "shell", name: "install_terraform",
# # inline: "wget https://releases.hashicorp.com/terraform/0.11.11/terraform_0.11.11_linux_amd64.zip && unzip terraform_0.11.11_linux_amd64.zip -d /usr/bin && rm -rf terraform*"
config.vm.provision "docker"
config.vm.provision "shell", name: "docker_swarm_cluster", inline: "docker swarm init --advertise-addr 192.168.99.201 --listen-addr 192.168.99.201:2377"
config.vm.define "techtest", primary: true do |techtest|
techtest.vm.hostname = 'techtest'
techtest.vm.network :private_network, ip: "192.168.99.201"
techtest.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", 4000]
v.customize ["modifyvm", :id, "--name", "techtest"]
end
end
end