forked from ubccr/coldfront
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Vagrantfile
29 lines (22 loc) · 1.44 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Vagrant.configure("2") do |config|
config.vm.box = "Scientific Linux 7 x86_64 Vagrant Base Box"
config.vm.box_url = "http://scs-repo.lbl.gov/img/rhel/7/sl7.box"
config.vbguest.auto_update = false
config.vm.synced_folder ".", "/vagrant/coldfront_app/coldfront"
config.vm.provision "shell", inline: "/vagrant/coldfront_app/coldfront/bootstrap/development/vm/update_curl.sh", privileged: true
config.vm.provision "shell", inline: "/vagrant/coldfront_app/coldfront/bootstrap/development/vm/fix_certs.sh", privileged: true
config.vm.provision "shell", inline: "/vagrant/coldfront_app/coldfront/bootstrap/development/vm/configure_firewalld.sh", privileged: true
# Run Ansible from the Vagrant VM
config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "coldfront_app/coldfront/bootstrap/ansible/playbook.yml"
ansible.galaxy_role_file = "coldfront_app/coldfront/bootstrap/ansible/requirements.yml"
ansible.galaxy_roles_path = "/home/vagrant/.ansible/roles"
# https://github.com/hashicorp/vagrant/issues/10958#issuecomment-724431455
ansible.galaxy_command = "ansible-galaxy collection install --requirements-file %{role_file} --collections-path /home/vagrant/.ansible/collections --force && ansible-galaxy install --role-file=%{role_file} --roles-path=%{roles_path} --force"
end
config.vm.network :forwarded_port, host: 8880, guest: 80
config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 2
end
end