From 77eaffa23d73df279c86a634d14251111f76ce4c Mon Sep 17 00:00:00 2001 From: wangjian Date: Wed, 13 Nov 2024 10:42:26 +0800 Subject: [PATCH] add kibana fleet config --- playbook/standalone.yml | 2 +- playbook/templates/kibana/kibana.yml.j2 | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/playbook/standalone.yml b/playbook/standalone.yml index 1e4f15a..eb50964 100644 --- a/playbook/standalone.yml +++ b/playbook/standalone.yml @@ -94,7 +94,7 @@ name: kibana state: stopped - name: stop kibana - shell: kill -9 $(ps -ef | grep "nohup /opt/kibana/bin/kibana --allow-root &" | grep -v grep | awk '{print $2}') + shell: kill -9 $(ps -ef | grep "nohup /opt/kibana/bin/kibana &" | grep -v grep | awk '{print $2}') - name: start kibana shell: nohup /opt/kibana/bin/kibana & become: yes diff --git a/playbook/templates/kibana/kibana.yml.j2 b/playbook/templates/kibana/kibana.yml.j2 index 5e6e57a..5680d96 100644 --- a/playbook/templates/kibana/kibana.yml.j2 +++ b/playbook/templates/kibana/kibana.yml.j2 @@ -67,6 +67,13 @@ server.ssl.key: {{ kibana_ssl_key_file }} #elasticsearch.ssl.certificate: /path/to/your/client.crt #elasticsearch.ssl.key: /path/to/your/client.key +xpack.fleet.agents.enabled: true +xpack.encryptedSavedObjects.encryptionKey: 7c3f32b06754df3652415819495205c1 +xpack.reporting.encryptionKey: fe0907696290a6ee18ecd717b255b422 +xpack.security.encryptionKey: 59f67be53851cdfb3216980ce2ea63f2 +server.xsrf.disableProtection: true +xpack.fleet.registryUrl: http://{{ groups['fleet'][0] }}:8080 + # Optional setting that enables you to specify a path to the PEM file for the certificate # authority for your Elasticsearch instance. {% if needSSL == "true" %} -- Gitee