2015-11-11 16:43:48 +00:00
|
|
|
Vagrant.configure(2) do |config|
|
|
|
|
|
|
|
|
config.ssh.forward_agent = 'true'
|
|
|
|
|
2017-08-28 16:45:46 +00:00
|
|
|
config.vm.box_url = 'http://software.apidb.org/vagrant/centos-7-64-puppet.json'
|
2016-08-24 22:18:13 +00:00
|
|
|
config.vm.box = 'ebrc/centos-7-64-puppet'
|
2015-11-11 16:43:48 +00:00
|
|
|
|
|
|
|
config.vm.hostname = 'redmine.vm.apidb.org'
|
2015-11-20 18:50:50 +00:00
|
|
|
config.vm.network :private_network, type: 'dhcp'
|
2015-11-11 16:43:48 +00:00
|
|
|
|
|
|
|
if Vagrant.has_plugin?('landrush')
|
|
|
|
config.landrush.enabled = true
|
|
|
|
config.landrush.tld = 'vm.apidb.org'
|
|
|
|
end
|
|
|
|
|
2016-08-24 22:18:13 +00:00
|
|
|
config.vm.provider 'virtualbox' do |v|
|
|
|
|
v.memory = 2048
|
|
|
|
end
|
|
|
|
|
2015-12-27 20:37:23 +00:00
|
|
|
# config.vm.provision 'bootstrap', type: 'ansible' do |ansible|
|
|
|
|
# ansible.playbook = 'bootstrap.yml'
|
|
|
|
# end
|
2015-11-22 02:48:30 +00:00
|
|
|
|
|
|
|
config.vm.provision 'deploy', type: 'ansible' do |ansible|
|
2015-11-11 16:43:48 +00:00
|
|
|
ansible.playbook = 'playbook.yml'
|
2017-12-21 03:03:02 +00:00
|
|
|
ansible.galaxy_role_file = 'requirements.yml'
|
|
|
|
ansible.galaxy_roles_path = 'roles'
|
2015-11-11 16:43:48 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|