Hi, Im currently trying to automate kibana setup using ansible.
I can configure the outputs and the fleetServerHosts, but the agents do not come online until i go into the UI to add the service token to the outputs.
current kibana.yml
...
..
.
# Fleet Outputs - Works but needs api/fleet/service_token added as secret
xpack.fleet.outputs:
- id: elastic-cluster
name: es-cluster
type: remote_elasticsearch
is_default: true
is_default_monitoring: true
secrets:
service_token:
id: "token-1709812465197"
hosts:
- https://es1.example.com:9201
- https://es2.example.com:9202
- https://es3.example.com:9203
xpack.fleet.fleetServerHosts:
- id: fleet-server
name: Fleet Server
is_default: true
host_urls: [https://fleet.example.com:8220]
I am using ansible to get the service token, and i get a response like :
"json": {
"name": "token-1709812465197",
"value": "AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyLXJlbW90ZS90b2tlbi0xNzA5ODEyNDY1MTk3OmlCNWExV2VrUm1taV9pckw5UUF4VWc"
},
Is there a way in the kibana.yml to specify the service token thats generated without putting the token value in?