forked from fedora-infra/noggin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
25 lines (21 loc) · 923 Bytes
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.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"
config.vm.box = "f31-cloud-libvirt"
#config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.hostname = "ipa.example.com"
config.vm.synced_folder ".", "/vagrant", type: "sshfs"
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.vm.provider :libvirt do |libvirt|
libvirt.cpus = 2
libvirt.memory = 2048
end
# Vagrant adds '127.0.0.1 ipa.example.com ipa' as the first line in /etc/hosts
# and freeipa doesnt like that, so we remove it
config.vm.provision "shell", inline: "sudo sed -i '1d' /etc/hosts"
config.vm.provision "ansible" do |ansible|
ansible.playbook = "devel/ansible/playbook.yml"
end
end