From c4723263a485a5025d7793d088e00dc566d34bd0 Mon Sep 17 00:00:00 2001 From: reyesj2 <94730068+reyesj2@users.noreply.github.com> Date: Thu, 6 Jun 2024 08:59:17 -0400 Subject: [PATCH] Remove unused kafka reactor Signed-off-by: reyesj2 <94730068+reyesj2@users.noreply.github.com> --- salt/reactor/kafka.sls | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 salt/reactor/kafka.sls diff --git a/salt/reactor/kafka.sls b/salt/reactor/kafka.sls deleted file mode 100644 index 879fb5431..000000000 --- a/salt/reactor/kafka.sls +++ /dev/null @@ -1,16 +0,0 @@ -{# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one -or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at -https://securityonion.net/license; you may not use this file except in compliance with the -Elastic License 2.0. #} - -{% set minionid = data['id'].split('_')[0] %} -{% set role = data['data']['process_x_roles'] %} - -{# Run so-yaml to replace kafka.node..role with the value from kafka/controllers.sls #} - -update_global_kafka_pillar: - local.cmd.run: - - tgt: 'G@role:so-manager or G@role:so-managersearch or G@role:so-standalone' - - tgt_type: compound - - arg: - - '/usr/sbin/so-yaml.py replace /opt/so/saltstack/local/pillar/kafka/nodes.sls kafka.nodes.{{ minionid }}.role {{ role }}' \ No newline at end of file