mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 02:15:20 +00:00
Added kibana opendistro security plugin (#36)
This commit is contained in:
parent
c7490f143c
commit
6b948c1b69
@ -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 %}
|
||||
|
12
sls/kibana/opendistro-security.sls
Normal file
12
sls/kibana/opendistro-security.sls
Normal 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
16
sls/kibana/pkg.sls
Normal 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
|
Loading…
Reference in New Issue
Block a user