Adding Vagrant based demo for Alexandria
This commit is contained in:
parent
e1d6e5afd3
commit
fa8d0da0c6
44
demo-box/Vagrantfile
vendored
Normal file
44
demo-box/Vagrantfile
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
Vagrant.configure(2) do |config|
|
||||
|
||||
config.vm.synced_folder ".", "/vagrant", disabled: true
|
||||
config.vm.guest = :ubuntu
|
||||
|
||||
config.ssh.username = "alexandria"
|
||||
config.ssh.username = "alexandria"
|
||||
|
||||
#############################################################################
|
||||
# Alexandria
|
||||
#############################################################################
|
||||
|
||||
config.vm.define "Alexandria" do |alexandria|
|
||||
node alexandria, name: "Alexandria"
|
||||
|
||||
# Alexandria init
|
||||
alexandria.vm.provision "shell", path: "alexandria_init.sh", keep_color: true, privileged: false
|
||||
|
||||
# Port forward for install GUI
|
||||
alexandria.vm.network "forwarded_port", guest: 22, host: 22, auto_correct: true
|
||||
|
||||
# Port forward for http
|
||||
alexandria.vm.network "forwarded_port", guest: 80, host: 80, auto_correct: true
|
||||
|
||||
# Port forward for https
|
||||
alexandria.vm.network "forwarded_port", guest: 443, host: 443, auto_correct: true
|
||||
|
||||
end
|
||||
|
||||
###############################################################################
|
||||
# Helper functions
|
||||
###############################################################################
|
||||
|
||||
def node (server, name: None, memory: 512, cpus: 2)
|
||||
|
||||
server.vm.box = "ubuntu/trusty64"
|
||||
|
||||
# Hardware
|
||||
server.vm.provider "virtualbox" do |vb, override|
|
||||
vb.memory = memory
|
||||
vb.cpus = cpus
|
||||
end
|
||||
end
|
||||
end
|
1
demo-box/alexandria_init.sh
Normal file
1
demo-box/alexandria_init.sh
Normal file
@ -0,0 +1 @@
|
||||
#!/bin/sh
|
Loading…
x
Reference in New Issue
Block a user