2016-03-11 03:18:06 +03:00
# vi: set ft=ruby :
2016-06-21 19:30:47 +03:00
# See `HACKING.md` for more information on this.
2016-03-11 03:18:06 +03:00
Vagrant . configure ( 2 ) do | config |
2016-10-31 23:26:56 +03:00
2019-05-02 07:34:17 +03:00
# TODO: switch to the Fedora 30 CoreOS vagrant box once available
config . vm . box = " fedora/29-atomic-host "
2016-10-31 23:26:56 +03:00
2019-05-02 07:34:17 +03:00
config . vm . hostname = " fedoraah-dev "
2016-10-31 23:26:56 +03:00
2016-06-14 23:27:14 +03:00
config . vm . define " vmcheck " do | vmcheck |
end
2016-06-04 17:48:06 +03:00
2016-11-14 17:46:18 +03:00
if Vagrant . has_plugin? ( 'vagrant-sshfs' )
2016-11-22 06:22:51 +03:00
config . vm . synced_folder " . " , " /var/roothome/sync " , type : 'sshfs'
2016-12-21 07:18:38 +03:00
File . write ( __dir__ + '/.vagrant/using_sshfs' , '' )
2016-11-14 17:46:18 +03:00
end
2016-11-22 06:22:51 +03:00
# turn off the default rsync in the vagrant box
2016-06-22 18:51:45 +03:00
config . vm . synced_folder " . " , " /home/vagrant/sync " , disabled : true
2016-06-09 17:21:07 +03:00
config . vm . provider " libvirt " do | libvirt , override |
libvirt . cpus = 2
libvirt . memory = 2048
libvirt . driver = 'kvm'
end
2016-06-04 17:48:06 +03:00
config . vm . provision " ansible " do | ansible |
2016-06-21 19:30:04 +03:00
ansible . playbook = " vagrant/setup.yml "
2016-06-04 17:48:06 +03:00
ansible . host_key_checking = false
ansible . raw_ssh_args = [ '-o ControlMaster=no' ]
2016-06-22 18:51:45 +03:00
# for debugging the ansible playbook
#ansible.raw_arguments = ['-v']
2016-06-04 17:48:06 +03:00
end
2016-03-11 03:18:06 +03:00
end