This repository has been archived by the owner on Mar 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
52 lines (49 loc) · 2.23 KB
/
Vagrantfile
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# https://github.com/hashicorp/vagrant/issues/1906#issuecomment-21082400
Vagrant.configure("2") do |config|
config.vm.define "gentoo" do |gentoo|
gentoo.vm.box = "generic/gentoo"
gentoo.vm.provider "virtualbox" do |vbox|
vbox.cpus = `sysctl -n hw.physicalcpu`
vbox.memory = 4096
end
gentoo.vm.synced_folder ".", "/vagrant"
gentoo.vm.provision "shell", inline: "emaint sync --auto || true"
gentoo.vm.provision "shell", inline: "emerge --oneshot -uq app-portage/gentoolkit"
gentoo.vm.provision "shell", inline: "USE='sqlite' emerge --oneshot -uNq dev-lang/python"
gentoo.vm.provision "shell", inline: "USE='drafts' emerge --oneshot -uNq net-libs/zeromq"
gentoo.vm.provision "shell", inline: "PYTHON_TARGETS='python3_6' emerge --oneshot -uq app-admin/ansible"
gentoo.vm.provision "shell", inline: "mkdir -p /etc/ansible/roles"
gentoo.vm.provision "shell", inline: "chmod o+rw /etc/ansible/roles"
gentoo.vm.provision "ansible_local" do |ansible|
ansible.compatibility_mode = "2.0"
ansible.galaxy_role_file = 'requirements.yml'
ansible.galaxy_roles_path = '/etc/ansible/roles'
ansible.playbook = "site.yml"
end
end
config.vm.define "debian9" do |debian9|
debian9.vm.box = "generic/debian9"
debian9.vm.synced_folder ".", "/vagrant"
debian9.vm.provision "shell", inline: "mkdir -p /etc/ansible/roles"
debian9.vm.provision "shell", inline: "chmod o+rw /etc/ansible/roles"
debian9.vm.provision "ansible_local" do |ansible|
ansible.install_mode = "pip"
ansible.compatibility_mode = "2.0"
ansible.galaxy_role_file = 'requirements.yml'
ansible.galaxy_roles_path = '/etc/ansible/roles'
ansible.playbook = "site.yml"
end
end
config.vm.define "ubuntu18" do |ubuntu18|
ubuntu18.vm.box = "ubuntu/bionic64"
ubuntu18.vm.provision "shell", inline: "mkdir -p /etc/ansible/roles"
ubuntu18.vm.provision "shell", inline: "chmod o+rw /etc/ansible/roles"
ubuntu18.vm.provision "ansible_local" do |ansible|
ansible.install_mode = "pip"
ansible.compatibility_mode = "2.0"
ansible.galaxy_role_file = 'requirements.yml'
ansible.galaxy_roles_path = '/etc/ansible/roles'
ansible.playbook = "site.yml"
end
end
end