This repository has been archived by the owner on Jul 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathVagrantfile
64 lines (56 loc) · 2.08 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# -*- mode: ruby -*-
# vi: set ft=ruby :
vagrant_plugins = %w(vagrant-vbguest vagrant-sshfs)
vagrant_plugins.each do |plugin|
unless Vagrant.has_plugin? plugin
puts "Plugin #{plugin} is not installed. Install it with:"
puts "vagrant plugin install #{vagrant_plugins.join(' ')}"
exit
end
end
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.hostname = "circa"
config.ssh.forward_agent = "true"
config.vm.synced_folder ".", "/vagrant", type: "sshfs", ssh_opts_append: "-o Compression=yes", sshfs_opts_append: "-o cache=no"
# Create a private network, which allows host-only access to the machine
# using a specific IP.
config.vm.network "private_network", ip: "192.168.33.30"
# Solr for Circa
config.vm.network "forwarded_port", guest: 8983, host: 8983,
auto_correct: true
# Circa
config.vm.network "forwarded_port", guest: 3000, host: 3000,
auto_correct: true
##Additional ArchiveSpace Ports if installing ArchiveSpace on your VM
# archivesspace_backend_port
# config.vm.network "forwarded_port", guest: 8089, host: 8089,
# auto_correct: true
# # archivesspace_frontend_port
# config.vm.network "forwarded_port", guest: 8080, host: 8080,
# auto_correct: true
# # archivesspace public interface
# config.vm.network "forwarded_port", guest: 8081, host: 8081,
# auto_correct: true
# # archivesspace OAI-PMH server
# config.vm.network "forwarded_port", guest: 8082, host: 8082,
# auto_correct: true
# # archivesspace_solr_port
# config.vm.network "forwarded_port", guest: 8090, host: 8090,
# auto_correct: true
config.vm.provider "virtualbox" do |vb|
vb.linked_clone = true
vb.memory = 1024
vb.cpus = 1
end
# install git before running ansible provisioner
config.vm.provision "shell", inline: "yum -y install git"
#ansible provisioning
config.vm.provision "ansible_local" do |ansible|
ansible.verbose = 'v'
ansible.provisioning_path = '/vagrant/ansible'
ansible.playbook = 'development-playbook.yml'
ansible.inventory_path = 'development.ini'
ansible.limit = 'all'
end
end