forked from fedora-infra/fasjson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
45 lines (36 loc) · 1.54 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.manage_guest = true
config.vm.define "freeipa" do |freeipa|
freeipa.vm.box_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/31/Cloud/x86_64/images/Fedora-Cloud-Base-Vagrant-31-1.9.x86_64.vagrant-libvirt.box"
freeipa.vm.box = "f31-cloud-libvirt"
freeipa.vm.hostname = "ipa.example.test"
freeipa.hostmanager.aliases = ("kerberos.example.test")
freeipa.vm.provider :libvirt do |libvirt|
libvirt.cpus = 2
libvirt.memory = 2048
end
# Vagrant adds '127.0.0.1 ipa.example.test ipa' as the first line in /etc/hosts
# and freeipa doesnt like that, so we remove it
freeipa.vm.provision "shell", inline: "sudo sed -i '1d' /etc/hosts"
freeipa.vm.provision "ansible" do |ansible|
ansible.playbook = "ansible/freeipa.yml"
end
end
config.vm.define "fasjson" do |fasjson|
fasjson.vm.box_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/31/Cloud/x86_64/images/Fedora-Cloud-Base-Vagrant-31-1.9.x86_64.vagrant-libvirt.box"
fasjson.vm.box = "f31-cloud-libvirt"
fasjson.vm.hostname = "fasjson.example.test"
fasjson.vm.synced_folder ".", "/vagrant/", type: "sshfs"
fasjson.vm.provider :libvirt do |libvirt|
libvirt.cpus = 2
libvirt.memory = 2048
end
fasjson.vm.provision "ansible" do |ansible|
ansible.playbook = "ansible/fasjson.yml"
end
end
end