Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Fixup vagrant port forwards #400

Merged
merged 1 commit into from
May 5, 2017
Merged

Conversation

ConsoleCatzirl
Copy link
Contributor

Match the 808X port to the .10X ip address. This was already the case
for most 808X ports, but both logs and backups were trying to use port
8085. Since backups uses ip address .105, use the port on that host. The
logs host uses ip address .102 so use port 8082 on that host.

Also add a direct port forward for kibana to bypass the apache reverse
proxy in front of it.

Signed-off-by: K Jonathan Harker [email protected]

Match the 808X port to the .10X ip address. This was already the case
for most 808X ports, but both logs and backups were trying to use port
8085. Since backups uses ip address .105, use the port on that host. The
logs host uses ip address .102 so use port 8082 on that host.

Also add a direct port forward for kibana to bypass the apache reverse
proxy in front of it.

Signed-off-by: K Jonathan Harker <[email protected]>
Copy link
Contributor

@mlangbehn mlangbehn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inline question.

@@ -159,6 +159,7 @@ Vagrant.configure(2) do |config|
elk.vm.hostname = 'elk.vagrant'
elk.vm.network "private_network", ip: "10.0.0.104"
elk.vm.network "forwarded_port", guest: 80, host: 8084
elk.vm.network "forwarded_port", guest: 5601, host: 5601
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jesusaurus: can you explain why we are this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a stale change I meant to make a few days ago. It allows a dev to hit kibana directly rather than going through the apache reverse proxy. We added a default deny vhost to the apache config here, so you need a hostname match to hit the correct vhost to proxy to kibana.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, that sounds like a great change to add. Since this change is for fixing vagrant port issues, it all looks good to me.

Copy link
Contributor

@mlangbehn mlangbehn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@@ -159,6 +159,7 @@ Vagrant.configure(2) do |config|
elk.vm.hostname = 'elk.vagrant'
elk.vm.network "private_network", ip: "10.0.0.104"
elk.vm.network "forwarded_port", guest: 80, host: 8084
elk.vm.network "forwarded_port", guest: 5601, host: 5601
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, that sounds like a great change to add. Since this change is for fixing vagrant port issues, it all looks good to me.

@bonnyci bonnyci bot merged commit 54b1762 into BonnyCI:master May 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants