2016-03-10 19:18:06 -05:00
# vi: set ft=ruby :
2016-06-21 12:30:47 -04:00
# See `HACKING.md` for more information on this.
2016-03-10 19:18:06 -05:00
Vagrant . configure ( 2 ) do | config |
2016-10-31 16:26:56 -04:00
2016-11-21 22:22:51 -05:00
config . vm . box = " centosah/7alpha "
config . vm . box_url = 'https://ci.centos.org/artifacts/sig-atomic/centos-continuous/images-alpha/cloud/latest/images/centos-atomic-host-7-vagrant-libvirt.box'
2016-10-31 16:26:56 -04:00
2016-05-09 12:43:11 -04:00
config . vm . hostname = " centosah-dev "
2016-10-31 16:26:56 -04:00
2016-06-14 16:27:14 -04:00
config . vm . define " vmcheck " do | vmcheck |
end
2016-06-04 10:48:06 -04:00
2016-11-14 09:46:18 -05:00
if Vagrant . has_plugin? ( 'vagrant-sshfs' )
2016-11-21 22:22:51 -05:00
config . vm . synced_folder " . " , " /var/roothome/sync " , type : 'sshfs'
2016-12-20 23:18:38 -05:00
File . write ( __dir__ + '/.vagrant/using_sshfs' , '' )
2016-11-14 09:46:18 -05:00
end
2016-11-21 22:22:51 -05:00
# turn off the default rsync in the vagrant box
2016-06-22 11:51:45 -04:00
config . vm . synced_folder " . " , " /home/vagrant/sync " , disabled : true
2016-06-09 10:21:07 -04:00
config . vm . provider " libvirt " do | libvirt , override |
libvirt . cpus = 2
libvirt . memory = 2048
libvirt . driver = 'kvm'
end
2016-06-04 10:48:06 -04:00
config . vm . provision " ansible " do | ansible |
2016-06-21 12:30:04 -04:00
ansible . playbook = " vagrant/setup.yml "
2016-06-04 10:48:06 -04:00
ansible . host_key_checking = false
ansible . raw_ssh_args = [ '-o ControlMaster=no' ]
2016-06-22 11:51:45 -04:00
# for debugging the ansible playbook
#ansible.raw_arguments = ['-v']
2016-06-04 10:48:06 -04:00
end
2016-03-10 19:18:06 -05:00
end