Fix soup state.apply args for postgres provisioning

state.apply takes a single mods argument; space-separated names are not
a list, so `state.apply postgres.auth postgres.telegraf_users` was only
applying postgres.auth and silently dropping the telegraf_users state.

Use comma-separated mods and add queue=True to match the rest of soup.
This commit is contained in:
Mike Reeves
2026-04-20 14:40:32 -04:00
parent 1cb34b089c
commit b6a3d1889c
+1 -1
View File
@@ -496,7 +496,7 @@ post_to_3.1.0() {
# container. Then push a telegraf state to every minion so their telegraf.conf
# picks up the new credentials on the first apply after soup.
echo "Provisioning Telegraf Postgres users for existing minions."
salt-call --local state.apply postgres.auth postgres.telegraf_users || true
salt-call --local state.apply postgres.auth,postgres.telegraf_users queue=True || true
POSTVERSION=3.1.0
}