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
2016-11-22 06:22:51 +03: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 23:26:56 +03:00
2016-05-09 19:43:11 +03:00
config . vm . hostname = " centosah-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'
File . write ( '.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