Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
tuj committed Jul 2, 2018
2 parents d021ff5 + 3e6e9bc commit 907f1c4
Show file tree
Hide file tree
Showing 60 changed files with 1,566 additions and 958 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
htdocs
packages
*.old
~
*.bak
.vagrant
docs
.idea
ubuntu-xenial-16.04-cloudimg-console.log
playbook.retry
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# os2display/vagrant Changelog

## 6.0.0

* Changed to ansible vagrant provisioning.
* Changed to Ubuntu.
* Added script to activate search indexes.
* Added script to initialize search index.
39 changes: 32 additions & 7 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,50 @@
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/debian-7.8"
config.vm.box = "ubuntu/xenial64"

# IP
config.vm.network "private_network", ip: "192.168.50.129"

# Memory
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
end

# IP
config.vm.network "private_network", ip: "192.168.50.129"

# Shared folder
config.vm.synced_folder ".", "/vagrant",
:nfs => true,
:mount_options => ['actimeo=2']

# Timeout if box hangs
config.vm.boot_timeout = 60

# Hostname(s)
config.vm.hostname = "os2display.vm"
config.hostsupdater.aliases = ["screen.os2display.vm", "admin.os2display.vm", "search.os2display.vm", "middleware.os2display.vm"]
config.hostsupdater.aliases = [
# Add additional hostnames here.
"admin.os2display.vm",
"screen.os2display.vm",
"middleware.os2display.vm",
"search.os2display.vm"
]

config.vm.provision "shell", inline: <<-SHELL
sed -i '$ a 127.0.1.1 screen.os2display.vm admin.os2display.vm search.os2display.vm middleware.os2display.vm' /etc/hosts
SHELL

config.bindfs.bind_folder '/vagrant', '/vagrant'

# What to install
config.vm.provision :shell, :path => "bootstrap.sh"
config.vm.provision :ansible do |ansible|
ansible.playbook = "playbook.yml"
ansible.raw_arguments = Shellwords.shellsplit(ENV['ANSIBLE_ARGS']) if ENV['ANSIBLE_ARGS']
end

# Disable vbguest update, as it hanges.
config.vbguest.no_remote = true
config.vbguest.auto_update = false

# SSH
config.ssh.forward_agent = true
config.ssh.insert_key = false
end
Loading

0 comments on commit 907f1c4

Please sign in to comment.