Closed bartwalczak1 closed 5 years ago
Hi there. Would you please provide a simple Vagrantfile that reproduces this error. Thanks!
hiya, Here's the one I am using:
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
# config.vm.box = "oraclelinux-6.5-x86_64"
# box below can be used to test redhat 7.2
# config.vm.box_url = "https://vagrant:B6G2b4EW@fridge.lab.mad-me.com/artifactory/private-artifacts/vagrant/boxes/redhat-7.2.tar"
# config.vm.box = "redhat-7.2-4-box"
config.vm.box = "centos/6"
# # Use vagrant-omnibus to install chef client
config.omnibus.chef_version = '12.19.36'
# set auto_update to false, if you do NOT want to check the correct
# additions version when booting this machine
if Vagrant.has_plugin?("vagrant-vbguest")
config.vbguest.auto_update = true
end
# If true, then any SSH connections made will enable agent forwarding.
# Default value: false
# config.ssh.forward_agent = true
###
# Define the various VM types that we are using
###
config.ssh.forward_agent = true
config.vm.define "app-server", primary: true do |app|
app.vm.network :private_network, ip: "192.168.0.2"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "1536"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("app_server")
# chef.log_level = "debug"
end
end
config.vm.define "postgresql", autostart: false do |psql|
psql.vm.network :private_network, ip: "192.168.0.4"
psql.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
psql.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("postgresql")
chef.log_level = "info"
# chef.json = { :apache => { :default_site_enabled => true } }
end
end
config.vm.define "insights-server" do |app|
app.vm.network :private_network, ip: "192.168.0.5"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "512"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("insights_server")
chef.log_level = "info"
end
end
config.vm.define "war-server" do |app|
# two networking interfaces for war-server, one "public" with HAProxy, another "private" with jboss listening to
app.vm.network :private_network, ip: "192.168.22.6"
app.vm.network :private_network, ip: "192.168.23.6"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
# chef.add_recipe("madme-base")
chef.add_role("war_server")
# chef.add_role("tomcat_server")
chef.json = {
'haproxy' => {
'madme' => {
'public_pools' => ['engine-ws', 'subscriber-ws', 'campaign-web', 'tracking-web', 'operator-web'],
'private_pools' => nil
}
}
}
chef.log_level = "info"
end
end
config.vm.define "engine-server" do |app|
# two networking interfaces for war-server, one "public" with HAProxy, another "private" with jboss listening to
app.vm.network :private_network, ip: "192.168.0.6"
app.vm.network :private_network, ip: "192.168.1.6"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
# chef.add_recipe("madme-base")
chef.add_role("engine_ws_server")
# chef.add_role("tomcat_server")
chef.json = {
'haproxy' => {
'madme' => {
'public_pools' => ['engine-ws'],
'private_pools' => nil
}
}
}
chef.log_level = "info"
end
end
config.vm.define "targetting-server" do |app|
app.vm.network :private_network, ip: "192.168.0.7"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "256"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.ssh.guest_port = 22
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("cache_server")
chef.add_role("targetting_server")
chef.add_role("proxy_server")
# chef.log_level = "debug"
end
end
config.vm.define "commando-server" do |app|
app.vm.network :private_network, ip: "192.168.0.8"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "256"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("commando_server")
chef.add_role("cache_server")
# chef.log_level = "debug"
end
end
config.vm.define "proxy-server" do |proxy|
proxy.vm.network :private_network, ip: "192.168.0.9"
proxy.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "256"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
proxy.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("public_proxy_server")
# chef.add_recipe("madme-base")
chef.log_level = "info"
end
end
config.vm.define "messaging-server" do |proxy|
proxy.vm.network :private_network, ip: "192.168.0.10"
proxy.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "256"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
proxy.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("messaging_server")
chef.log_level = "info"
end
end
config.vm.define "aws-template" do |proxy|
proxy.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
end
config.vm.define "schematron" do |proxy|
proxy.vm.network :private_network, ip: "192.168.0.11"
proxy.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "256"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
proxy.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("schema_provisioner")
chef.add_recipe("madme-postgre-schematron::postgresql_reporting_user")
#chef.add_recipe("madme-oracle-schematron")
chef.json = {
'postgresql_host' => '192.168.0.4',
'madme-postgre-schematron' => { 'dba_password' => 'mAdmePSQL1' }
}
# chef.log_level = "debug"
end
end
config.vm.define "zabbix-agent" do |zbagent|
zbagent.vm.network :private_network, ip: "192.168.0.12"
zbagent.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "256"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
# ssh vagrant@192.168.0.12
# password: vagrant
zbagent.ssh.forward_agent = true
zbagent.ssh.guest_port = 22
zbagent.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("zabbix-agent")
chef.log_level = "debug"
end
end
config.vm.define "zabbix-server" do |proxy|
proxy.vm.network :private_network, ip: "192.168.0.13"
proxy.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "256"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
proxy.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("zabbix_server")
# chef.log_level = "debug"
end
end
config.vm.define "survey-server" do |app|
app.vm.network :private_network, ip: "192.168.0.14"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "256"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.ssh.guest_port = 22
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("survey_server")
chef.log_level = "info"
end
end
config.vm.define "web_app" do |proxy|
proxy.vm.network :private_network, ip: "192.168.0.15"
proxy.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "256"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
proxy.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("media_server")
chef.json = {
'madme_apache2' => { 'doc_root' => '/opt/madme' }
}
# chef.log_level = "debug"
end
end
config.vm.define "jenkins" do |proxy|
proxy.vm.network :private_network, ip: "192.168.0.16"
proxy.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
proxy.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("jenkins_master")
# chef.log_level = "debug"
end
end
config.vm.define "survey_ui_server", primary: true do |app|
app.vm.network :private_network, ip: "192.168.0.17"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "256"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("public_proxy_server")
chef.add_role("survey_ui_server")
# chef.log_level = "debug"
end
end
config.vm.define "transcode-server" do |app|
app.vm.network :private_network, ip: "192.168.0.18"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "256"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.ssh.guest_port = 22
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("transcoder_server")
# chef.log_level = "debug"
end
end
config.vm.define "identity-server" do |app|
app.vm.network :private_network, ip: "192.168.0.19"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "256"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.ssh.guest_port = 22
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("identity_server")
chef.log_level = "info"
end
end
config.vm.define "multijdk-server" do |app|
app.vm.network :private_network, ip: "192.168.0.20"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "512"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.ssh.guest_port = 22
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_recipe("madme-base")
chef.add_recipe("madme-java7")
chef.add_recipe("madme-java8")
# chef.log_level = "debug"
end
end
config.vm.define "push-gw-server" do |app|
app.vm.network :private_network, ip: "192.168.0.21"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "256"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.ssh.guest_port = 22
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("push_gw_server")
chef.add_role("public_proxy_server")
chef.log_level = "debug"
end
end
config.vm.define "tracking-server" do |app|
app.vm.network :private_network, ip: "192.168.0.22"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "256"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.ssh.guest_port = 22
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("tracking_server")
chef.log_level = "info"
end
end
config.vm.define "elasticsearch" do |app|
app.vm.network :private_network, ip: "192.168.0.23"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("elasticsearch_master")
chef.log_level = "debug"
end
end
config.vm.define "profiler-server" do |app|
app.vm.network :private_network, ip: "192.168.0.24"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "256"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.ssh.guest_port = 22
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("profiler_server")
chef.log_level = "debug"
end
end
config.vm.define "monitoring-server" do |app|
app.vm.network :private_network, ip: "192.168.0.25"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "512"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.ssh.guest_port = 22
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_recipe("madme-prometheus::node_exporter")
chef.add_role("prometheus_server")
chef.log_level = "info"
end
end
config.vm.define "madme_base" do |app|
app.vm.network :private_network, ip: "10.1.1.35"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_recipe("madme-base")
chef.log_level = "info"
end
end
config.vm.define "airflow-server" do |app|
app.vm.network :private_network, ip: "10.1.1.36"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "512"]
vb.customize ["modifyvm", :id, "--cpus", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
# chef.add_recipe("chef-solo-search")
chef.add_recipe("madme-base")
chef.add_recipe("madme-role-airflow_server")
chef.log_level = "info"
end
end
end
@bartwalczak1 Can you reduce that down to the minimum required to reproduce the issue?
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "centos/6"
config.omnibus.chef_version = '12.19.36'
if Vagrant.has_plugin?("vagrant-vbguest")
config.vbguest.auto_update = true
end
config.ssh.forward_agent = true
config.vm.define "app-server", primary: true do |app|
app.vm.network :private_network, ip: "192.168.0.2"
app.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--memory", "1536"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
app.vm.provision "chef_zero" do |chef|
chef.environments_path = "chef-repo/environments"
chef.cookbooks_path = "chef-repo/cookbooks"
chef.roles_path = "chef-repo/roles"
chef.data_bags_path = "chef-repo/data_bags"
chef.nodes_path = "chef-repo/nodes"
chef.environment = "local"
chef.add_recipe("chef-solo-search")
chef.add_role("app_server")
# chef.log_level = "debug"
end
end
end
Hi there,
Thanks for reporting this bug. I'm sure this was a real issue when originally reported (our fault for not looking sooner!) but there have been multiple Vagrant releases since the original report. I'm going to close this issue now and request you reopen the issue if you're still experiencing this problem. I'm sorry this wasn't looked at earlier :frowning_face:
Cheers!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Vagrant version
Run
vagrant -v
to show the version. If you are not running the latest version of Vagrant, please upgrade before submitting an issue. 1.9.5Host operating system
This is the operating system that you run locally. Fedora 25
Guest operating system
This is the operating system you run in the virtual machine. centos 6
Already tried reinstalling vagrant, removing .vagrant.d
Gem list
Ruby version
ruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-linux]