Added kibana opendistro security plugin (#36)

This commit is contained in:
amalgamm 2019-10-25 14:22:08 +03:00 committed by niku64
parent c7490f143c
commit 6b948c1b69
3 changed files with 38 additions and 14 deletions

View File

@ -1,17 +1,11 @@
{% import 'pkg/common' as pkg %}
{% set opendistro_enabled = salt.pillar.get('kibana:opendistro:enabled', False) %}
include:
- gentoo.portage.packages
- kibana.config
/etc/init.d/kibana:
file.managed:
- source: salt://kibana/files/kibana.initd
- mode: 755
www-apps/kibana-bin:
pkg.installed:
- pkgs:
- {{ pkg.gen_atom('www-apps/kibana') }}
- .pkg
- .config
{% if opendistro_enabled %}
- .opendistro-security
{% endif %}
kibana:
service.running:
@ -20,4 +14,6 @@ kibana:
- pkg: www-apps/kibana-bin
- file: /etc/kibana/kibana.yml
- file: /etc/init.d/kibana
{% if opendistro_enabled %}
- pkg: app-misc/opendistro-security-kibana-plugin
{% endif %}

View File

@ -0,0 +1,12 @@
{% import 'pkg/common' as pkg %}
include:
- gentoo.portage.packages
- gentoo.repos.rbkmoney
app-misc/opendistro-security-kibana-plugin:
pkg.installed:
- pkgs:
- {{ pkg.gen_atom('app-misc/opendistro-security-kibana-plugin') }}
- require:
- file: gentoo.portage.packages
- git: rbkmoney

16
sls/kibana/pkg.sls Normal file
View File

@ -0,0 +1,16 @@
{% import 'pkg/common' as pkg %}
include:
- gentoo.portage.packages
- java.openjdk-bin11-system
/etc/init.d/kibana:
file.managed:
- source: salt://kibana/files/kibana.initd
- mode: 755
www-apps/kibana-bin:
pkg.installed:
- pkgs:
- {{ pkg.gen_atom('www-apps/kibana-bin') }}
- require:
- file: gentoo.portage.packages