mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 15:53:06 +00:00
Merge pull request 'fenix-admin' (#219) from fenix-admin into main
Reviewed-on: fenix-gitea-admin/iac-opentofu-private#219
This commit is contained in:
@ -131,13 +131,14 @@ jobs:
|
|||||||
- name: vaultwarden getsecrets
|
- name: vaultwarden getsecrets
|
||||||
working-directory: infra/iac
|
working-directory: infra/iac
|
||||||
run: |
|
run: |
|
||||||
|
BW_SESSION2=$(bw unlock --raw)
|
||||||
# Ler o arquivo de referência
|
# Ler o arquivo de referência
|
||||||
for secret in $(jq -c '.secrets[]' secrets/vault-secrets-map.json); do
|
for secret in $(jq -c '.secrets[]' secrets/vault-secrets-map.json); do
|
||||||
name=$(echo "$secret" | jq -r '.name')
|
name=$(echo "$secret" | jq -r '.name')
|
||||||
type=$(echo "$secret" | jq -r '.type')
|
type=$(echo "$secret" | jq -r '.type')
|
||||||
output=$(echo "$secret" | jq -r '.output')
|
output=$(echo "$secret" | jq -r '.output')
|
||||||
echo "$name $type $output"
|
echo "$name $type $output"
|
||||||
item_id=$(bw get item "$name" | jq -r '.id')
|
item_id=$(bw get item "$name" --session "$BW_SESSION2" | jq -r '.id')
|
||||||
echo "$item_id"
|
echo "$item_id"
|
||||||
if [ "$type" == "attachment" ]; then
|
if [ "$type" == "attachment" ]; then
|
||||||
echo "attachment get"
|
echo "attachment get"
|
||||||
|
|||||||
@ -2,12 +2,12 @@
|
|||||||
"secrets": [
|
"secrets": [
|
||||||
{
|
{
|
||||||
"name": "iac.opentofu.consul.secrets",
|
"name": "iac.opentofu.consul.secrets",
|
||||||
"type": "attachment",
|
"type": "note",
|
||||||
"output": "../secrets/consul.secrets.tfvars"
|
"output": "../secrets/consul.secrets.tfvars"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "iac.opentofu.proxmox.secrets",
|
"name": "iac.opentofu.proxmox.secrets",
|
||||||
"type": "attachment",
|
"type": "note",
|
||||||
"output": "../secrets/proxmox.secrets.tfvars"
|
"output": "../secrets/proxmox.secrets.tfvars"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user