make influxdb token accessible to all nodes

This commit is contained in:
m0duspwnens
2023-03-06 13:50:17 -05:00
parent e3f9b5297a
commit b6d55bedc8
6 changed files with 10 additions and 6 deletions

View File

@@ -899,6 +899,7 @@ create_manager_pillars() {
kratos_pillar
soc_pillar
idh_pillar
influxdb_pillar
}
@@ -1538,6 +1539,9 @@ influxdb_pillar() {
title "Create the influxdb pillar file"
touch $adv_influxdb_pillar_file
touch $influxdb_pillar_file
printf '%s\n'\
"influxdb:"\
" token: $INFLUXTOKEN" > $local_salt_dir/pillar/influxdb/token.sls
}
make_some_dirs() {
@@ -2066,8 +2070,7 @@ secrets_pillar(){
" playbook_admin: $PLAYBOOKADMINPASS"\
" playbook_automation: $PLAYBOOKAUTOMATIONPASS"\
" playbook_automation_api_key: "\
" influx_pass: $INFLUXPASS"\
" influx_token: $INFLUXTOKEN" > $local_salt_dir/pillar/secrets.sls
" influx_pass: $INFLUXPASS" > $local_salt_dir/pillar/secrets.sls
fi
}