-
Notifications
You must be signed in to change notification settings - Fork 3
/
Vagrantfile
41 lines (33 loc) · 1.96 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# It is possible to use URLs to nightly images produced by the Fedora project here. You can find
# the nightly composes here: https://kojipkgs.fedoraproject.org/compose/
# Sometimes, a nightly compose is incomplete and does not contain a Vagrant image, so you may need
# to browse that repository a bit to find the latest successful Vagrant image. For example, at the
# time of this writing, I could set this setting like this for the latest F24 image:
# config.vm.box = "https://kojipkgs.fedoraproject.org/compose/rawhide/latest-Fedora-Rawhide/compose/CloudImages/x86_64/images/<imagename>.vagrant-libvirt.box"
# Uncomment this, comment below lines for CentOS 7
# config.vm.box = "centos/7"
# Latest CentOS 7 box is not on vagrantcloud
config.vm.box = "centos/82"
config.vm.box_url = "https://cloud.centos.org/centos/8/vagrant/x86_64/images/CentOS-8-Vagrant-8.2.2004-20200611.2.x86_64.vagrant-libvirt.box"
# need to use the default vagrant key
config.ssh.insert_key = false
# Disable the rsynced folder, which adds pointless disk space.
config.vm.synced_folder ".", "/vagrant", disabled: true
# Uncomment to create CentOS 7 box. (May not be needed)
# config.vm.provision "shell", inline: "sudo yum install -y epel-release"
# Uncomment this line if you would like to enable the automatic update during provisioning
# In case the box is not the latest minor release of CentOS
# config.vm.provision "shell", inline: "sudo yum upgrade -y"
# bootstrap and run with ansible
config.vm.provision "shell", path: "scripts/bootstrap-ansible.sh"
config.vm.provision "ansible" do |ansible|
# Uncomment this if you want debug tools like gdb, tcpdump, et al. installed
# (you don't, unless you know you do)
# ansible.extra_vars = { pulp_dev_debug: true }
ansible.playbook = "ansible/vagrant-playbook.yml"
end
end