Merge pull request #6271 from Security-Onion-Solutions/fix/fleet-users

Fix soup - fleetdm SA user
This commit is contained in:
Mike Reeves
2021-11-17 19:48:15 -05:00
committed by GitHub

View File

@@ -440,6 +440,8 @@ post_to_2.3.90() {
salt-call state.apply kibana.so_savedobjects_defaults queue=True salt-call state.apply kibana.so_savedobjects_defaults queue=True
# Create FleetDM service account # Create FleetDM service account
FLEET_MANAGER=$(lookup_pillar fleet_manager)
if [[ "$FLEET_MANAGER" == "True" ]]; then
FLEET_SA_EMAIL=$(lookup_pillar_secret fleet_sa_email) FLEET_SA_EMAIL=$(lookup_pillar_secret fleet_sa_email)
FLEET_SA_PW=$(lookup_pillar_secret fleet_sa_password) FLEET_SA_PW=$(lookup_pillar_secret fleet_sa_password)
MYSQL_PW=$(lookup_pillar_secret mysql) MYSQL_PW=$(lookup_pillar_secret mysql)
@@ -454,6 +456,8 @@ post_to_2.3.90() {
echo "Unable to add service account to Fleet" echo "Unable to add service account to Fleet"
echo "$MYSQL_OUTPUT" echo "$MYSQL_OUTPUT"
fi fi
fi
POSTVERSION=2.3.90 POSTVERSION=2.3.90