# -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility). Please don't change it unless you know what # you're doing. Vagrant.configure(2) do |config| config.vm.box = "wheezy" config.vm.box_url = "https://dl.dropboxusercontent.com/s/xymcvez85i29lym/vagrant-debian-wheezy64.box" # set auto_update to false, if you do NOT want to check the correct # additions version when booting this machine config.vbguest.auto_update = false # do NOT download the iso file from a webserver config.vbguest.no_remote = true # config.vm.network 'forwarded_port', guest: 8009, host: 8090 # config.vm.network 'forwarded_port', guest: 8009, host: 8090 # config.vm.network 'forwarded_port', guest: 8380, host: 8390 # config.vm.network 'forwarded_port', guest: 80, host: 10080 config.vm.network "public_network" config.vm.provider "virtualbox" do |vb| vb.customize ["modifyvm", :id, "--memory", "4048"] vb.customize ["modifyvm", :id, "--cpus", 6] end # config.vm.provision "shell", path: "setup.sh" do |s| # s.args = '-f -d -n' # end config.berkshelf.enabled = true config.vm.provision 'chef_solo' do |chef| chef.add_recipe 'postgresql::ruby' chef.add_recipe 'postgresql::client' chef.add_recipe 'gazelle_base' chef.add_recipe 'gazelle_apache_conf' chef.add_recipe 'gazelle_cas' chef.add_recipe 'jboss7' #chef.add_recipe 'deploy_gazelle_application' chef.json = { :ihe => { :server_name => 'gazelle-cats', :update_databases => false, :services => [ {:name => 'Gazelle Test Management', :url => 'gazelle', :port => '8009', :protocol => 'ajp', :description => 'The Gazelle Test Management Test Bed', :type => :tool }, {:name => 'Assertion Manager Gui', :url => 'AssertionManagerGui', :port => '8380', :protocol => 'http', :description => 'Import and delete assertions', :type => :tool }, {:name => 'TLS Simulator', :url => 'tls', :port => '8009', :protocol => 'ajp', :description => 'TLS and PKI tools', :type => :validator }, {:name => 'Gazelle HL7 Validator', :url => 'GazelleHL7Validator', :port => '8009', :protocol => 'ajp', :description => 'Validator for the KPDQ use case', :type => :validator }, {:name => 'SVS Simulator', :url => 'SVSSimulator', :port => '8009', :protocol => 'ajp', :description => 'Value set repository', :type => :tool }, {:name => 'PatientManager', :url => 'PatientManager', :port => '8009', :protocol => 'ajp', :description => 'Simulator for the KPDQ use case', :type => :simulator }, {:name => 'CAS login', :url => 'cas', :port => '8180', :protocol => 'ajp', :description => 'SSO login', :type => :utility } ], :applications => [ { :dist => { :artifact => 'gazelle-tm-ear', :extension => 'zip', :groupId => 'net.ihe.gazelle.tm', :repository => 'releases', :version => 'LATEST' }, :package => { :artifact => 'gazelle-tm-ear', :database => { :name => 'gazelle', :password => 'gazelle', :user => 'gazelle', :import => false }, :extension => 'ear', :groupId => 'net.ihe.gazelle.tm', :jboss => { :version => 5, :server => 'gazelle', :package_file_name => 'gazelle-tm.ear' }, :repository => 'releases', :version => 'LATEST' } }, { :dist => { :artifact => 'gazelle-atna-ear', :extension => 'zip', :groupId => 'net.ihe.gazelle.atna', :repository => 'releases', :version => 'LATEST' }, :package => { :artifact => 'gazelle-atna-ear', :classifier => 'tls', :database => { :name => 'tls', :password => 'gazelle', :user => 'gazelle', :import => false }, :extension => 'ear', :groupId => 'net.ihe.gazelle.atna', :jboss => { :version => 5, :server => 'gazelle', :package_file_name => 'gazelle-tls.ear' }, :repository => 'releases', :version => 'LATEST' } }, { :package => { :artifact => 'GazelleHL7v2Validator-ear', :database => { :name => 'gazelle-hl7-validator', :password => 'gazelle', :user => 'gazelle', :import => true }, :extension => 'ear', :groupId => 'net.ihe.gazelle', :jboss => { :version => 5, :server => 'gazelle', :package_file_name => 'GazelleHL7v2Validator.ear' }, :repository => 'releases', :version => 'LATEST' } }, { :package => { :artifact => 'SVSSimulator-ear', :database => { :name => 'svs-simulator', :password => 'gazelle', :user => 'gazelle', :import => true }, :extension => 'ear', :groupId => 'net.ihe.gazelle.simulators', :jboss => { :version => 5, :server => 'gazelle', :package_file_name => 'SVSSimulator.ear' }, :repository => 'releases', :version => 'LATEST' } }, { :package => { :artifact => 'PAMSimulator-ear', :database => { :name => 'pam-simulator', :password => 'gazelle', :user => 'gazelle', :import => false }, :extension => 'ear', :groupId => 'net.ihe.gazelle.simulators', :jboss => { :version => 5, :server => 'gazelle', :package_file_name => 'PAMSimulator.ear' }, :repository => 'releases', :version => 'LATEST' } }, { :package => { :url => 'http://gazelle.ihe.net/jenkins/job/AssertionManager-Gui-RELEASE/ws/AssertionManagerGui-ear/target/AssertionManagerGui.ear', :database => { :name => 'assertion-manager', :password => 'gazelle', :user => 'gazelle', :import => false }, :jboss => { :version => 7, :server => 'standalone', :package_file_name => 'AssertionManagerGui.ear' } } } ] } } end end