be1be526ff
Switch the Docker + Vagrant development docs to use a Fedora 29 build container, and a Fedora 29 Atomic Host Vagrant box. CentOS 7-based testing was recently removed (#1785) - let's have the documented development pattern reflect this. Also no longer enables the EPEL7 repo in the Vagrant VM, as needed dependencies are available in Fedora Atomic Host. A note is left to later switch to Fedora CoreOS as the documented Vagrant box to use, once Fedora CoreOS boxes are produced. Alternatively, one may use [cosa](https://github.com/coreos/coreos-assembler). A few notes are also added to vagrant/README.md in places where the reader may hit problems. squash Closes: #1826 Approved by: cgwalters
37 lines
1.0 KiB
Ruby
37 lines
1.0 KiB
Ruby
# vi: set ft=ruby :
|
|
|
|
# See `HACKING.md` for more information on this.
|
|
|
|
Vagrant.configure(2) do |config|
|
|
|
|
# TODO: switch to the Fedora 30 CoreOS vagrant box once available
|
|
config.vm.box = "fedora/29-atomic-host"
|
|
|
|
config.vm.hostname = "fedoraah-dev"
|
|
|
|
config.vm.define "vmcheck" do |vmcheck|
|
|
end
|
|
|
|
if Vagrant.has_plugin?('vagrant-sshfs')
|
|
config.vm.synced_folder ".", "/var/roothome/sync", type: 'sshfs'
|
|
File.write(__dir__ + '/.vagrant/using_sshfs', '')
|
|
end
|
|
|
|
# turn off the default rsync in the vagrant box
|
|
config.vm.synced_folder ".", "/home/vagrant/sync", disabled: true
|
|
|
|
config.vm.provider "libvirt" do |libvirt, override|
|
|
libvirt.cpus = 2
|
|
libvirt.memory = 2048
|
|
libvirt.driver = 'kvm'
|
|
end
|
|
|
|
config.vm.provision "ansible" do |ansible|
|
|
ansible.playbook = "vagrant/setup.yml"
|
|
ansible.host_key_checking = false
|
|
ansible.raw_ssh_args = ['-o ControlMaster=no']
|
|
# for debugging the ansible playbook
|
|
#ansible.raw_arguments = ['-v']
|
|
end
|
|
end
|