Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icinga2x-elastic: Use Nginx HTTP proxy to secure Kibana on https://192.168.33.7:5601 (icinga/icinga) #98

Merged
merged 1 commit into from
Sep 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ Note: Logstash integration is missing in [#31](https://github.com/Icinga/icinga-
------------------|-----------------------------------|----------------
Icinga Web 2 | http://192.168.33.7/icingaweb2 | icingaadmin/icinga
Icinga 2 API | https://192.168.33.7:5665/v1 | root/icinga
Kibana | http://192.168.33.7:5601 | -
Kibana | https://192.168.33.7:5601 | icinga/icinga
Elasticsearch/Nginx | https://192.168.33.7:9200 | icinga/icinga

### <a id="icinga2x-graylog"></a>Icinga 2 and Graylog
Expand Down
16 changes: 15 additions & 1 deletion icinga2x-elastic/manifests/default.pp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
ensure => "$kibanaVersion-1",
config => {
'server.port' => 5601,
'server.host' => '0.0.0.0',
'server.host' => '127.0.0.1',
'kibana.index' => '.kibana',
'kibana.defaultAppId' => "$kibanaDefaultAppId",
'logging.silent' => false,
Expand Down Expand Up @@ -298,6 +298,20 @@
auth_basic_user_file => "$elasticsearchBasicAuthFile",
require => File['/etc/icinga2']
}->
nginx::resource::server { 'kibana.vagrant-demo.icinga.com':
listen_ip => '192.168.33.7',
listen_port => 5601,
ssl => true,
ssl_port => 5601,
ssl_cert => '/etc/icinga2/pki/icinga2-elastic.crt',
ssl_key => '/etc/icinga2/pki/icinga2-elastic.key',
ssl_trusted_cert => '/etc/icinga2/pki/ca.crt',
ipv6_listen_port => 5601,
proxy => 'http://localhost:5601',
auth_basic => 'Kibana auth',
auth_basic_user_file => "$elasticsearchBasicAuthFile",
require => File['/etc/icinga2']
}->
class { 'filebeat':
outputs => {
'elasticsearch' => {
Expand Down