diff --git a/ansible/provision-managers.yml b/ansible/provision-managers.yml index 1d8947259847cd8a4e430231565cc0b0c987892f..3db5bd8d052baba9b29d672ce52aaa3ab04a68d2 100644 --- a/ansible/provision-managers.yml +++ b/ansible/provision-managers.yml @@ -22,7 +22,7 @@ alert_format: "{{ custom_integration_alert_format }}" minimum_master_nodes: 1 elasticsearch_node_master: true - elasticsearch_network_host: "{{ elasticsearch_host_ip }}" + elasticsearch_network_host: "0.0.0.0" filebeat_node_name: node-1 filebeat_output_elasticsearch_hosts: "{{ elasticsearch_host_ip }}" instances: diff --git a/environments/full-setup/Vagrantfile b/environments/full-setup/Vagrantfile index f84692a651cce619f6b8d293b7f7d5289e325679..3b0684f7073d67e9abd9a44697ed55820bf433c1 100644 --- a/environments/full-setup/Vagrantfile +++ b/environments/full-setup/Vagrantfile @@ -6,6 +6,7 @@ servers=[ :hostname => "manager", :ip => "192.168.33.10", :box => "centos/8", + :forward_ports => [{:guest => 55000, :host => 55000}, {:guest => 9200, :host => 9200}], :ram => 2048, :cpu => 2 }, @@ -34,6 +35,7 @@ servers=[ :hostname => "clouditor", :ip => "192.168.33.14", :box => "centos/8", + :forward_ports => [{:guest => 9090, :host => 9090}], :ram => 1024, :cpu => 1 } @@ -42,9 +44,17 @@ servers=[ Vagrant.configure(2) do |config| servers.each do |machine| config.vm.define machine[:hostname] do |node| + # node.vm.provision "ansible" do |ansible| + # ansible.playbook = "../../ansible/provision.yml" + # end node.vm.box = machine[:box] node.vm.hostname = machine[:hostname] node.vm.network "private_network", ip: machine[:ip] + if machine[:forward_ports] + machine[:forward_ports].each { |port_cfg| + node.vm.network "forwarded_port", guest: port_cfg[:guest], host: port_cfg[:host] + } + end node.vm.provider "virtualbox" do |vb| vb.customize ["modifyvm", :id, "--memory", machine[:ram]] end