Created
April 13, 2012 06:56
-
-
Save jeroenr/2374590 to your computer and use it in GitHub Desktop.
Multi VM setup with Vagrant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node backend-test { | |
$ip_address = '192.168.11.160' | |
class { 'elmar::basenode': | |
ip_address => $ip_address, | |
interface => "eth1", | |
} | |
class { 'elmar::solr::config::dev': | |
} | |
include elmar::neckerman::dev | |
include elmar::hadoop::cluster::dev | |
class { 'elmar::thirdparty::adcore': | |
packagename => 'elmar-adcore-master', | |
solr_server => 'http://localhost:7070/solr/elmar', | |
} | |
class { 'elmar::thirdparty::affilinet': | |
packagename => 'elmar-affilinet-master', | |
solr_server => 'http://localhost:7070/solr/elmar' | |
} | |
class { "elmar::thirdparty::jack": | |
packagename => "elmar-jack-integration-master", | |
db_user => "elmar", | |
db_pass => "elmar" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node frontend-test { | |
$google_map_key = 'ABQIAAAAa7E_QPIbi9GijtwEFx9KgRS6WOHk_ATwMVATR2cxxXeZ6ujLTRQ4qHcdOR4Zl9tvan-zmFzsiPsOMQ' | |
$ip_address = '192.168.11.160' | |
class { 'elmar::basenode': | |
ip_address => $ip_address, | |
interface => "eth1", | |
} | |
class { "elmar::orange" : | |
reizenVersion => "-vdsearchbox", | |
app => "vd", | |
ip_address => $ip_address, | |
google_map_key => $google_map_key, | |
database_version => "-master", | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Elmar configuration file for Vagrant. Requires 0.9.5 or higher ### | |
## ================================ | |
# Don't edit below unless you know what you're doing | |
## ================================ | |
Vagrant::Config.run do |config| | |
config.vm.define :frontend do |frontend_config| | |
## Provisioning | |
frontend_config.vm.provision :puppet do |puppet| | |
puppet.module_path = "modules" | |
puppet.manifest_file = "site.pp" | |
end | |
## Base box | |
frontend_config.vm.box = "vagrant-box-squeeze" | |
## Hostname and VM name | |
frontend_config.vm.host_name = "frontend-test" | |
frontend_config.vm.customize ["modifyvm", :id, "--name", "frontend-test"] | |
## Networking | |
frontend_config.vm.network :bridged, { :auto_config => false, :bridge => "eth0" } | |
end | |
config.vm.define :backend do |backend_config| | |
## Provisioning | |
backend_config.vm.provision :puppet do |puppet| | |
puppet.module_path = "modules" | |
puppet.manifest_file = "site.pp" | |
end | |
## Base box | |
backend_config.vm.box = "vagrant-box-squeeze" | |
## Hostname and VM name | |
backend_config.vm.host_name = "backend-test" | |
backend_config.vm.customize ["modifyvm", :id, "--name", "backend-test"] | |
## Networking | |
backend_config.vm.network :bridged, { :auto_config => false, :bridge => "eth0" } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment