Skip to content

Commit

Permalink
feat: use authentification media website
Browse files Browse the repository at this point in the history
  • Loading branch information
M0NsTeRRR committed Jun 18, 2024
1 parent fee15f9 commit d19f76a
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 1 deletion.
8 changes: 8 additions & 0 deletions ansible/group_vars/kubernetes_master/secrets.example
Original file line number Diff line number Diff line change
Expand Up @@ -88,24 +88,32 @@ secret_vault_datas:
- path: secret/data/homelab/prod/bazarr
data:
data:
USERNAME:
PASSWORD:
API_KEY:
POSTGRES_USER:
POSTGRES_PASSWORD:
- path: secret/data/homelab/prod/prowlarr
data:
data:
USERNAME:
PASSWORD:
API_KEY:
POSTGRES_USER:
POSTGRES_PASSWORD:
- path: secret/data/homelab/prod/radarr
data:
data:
USERNAME:
PASSWORD:
API_KEY:
POSTGRES_USER:
POSTGRES_PASSWORD:
- path: secret/data/homelab/prod/sonarr
data:
data:
USERNAME:
PASSWORD:
API_KEY:
POSTGRES_USER:
POSTGRES_PASSWORD:
Expand Down
16 changes: 15 additions & 1 deletion argocd/media/bazarr/manifests/01_external_secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,21 @@ spec:
kind: SecretStore
name: vault
data:
- secretKey: RADARR__AUTH__APIKEY
- secretKey: BAZARR__AUTH__USERNAME
remoteRef:
conversionStrategy: Default
decodingStrategy: None
metadataPolicy: None
key: secret/data/homelab/prod/bazarr
property: USERNAME
- secretKey: BAZARR__AUTH__PASSWORD
remoteRef:
conversionStrategy: Default
decodingStrategy: None
metadataPolicy: None
key: secret/data/homelab/prod/bazarr
property: PASSWORD
- secretKey: BAZARR__AUTH__APIKEY
remoteRef:
conversionStrategy: Default
decodingStrategy: None
Expand Down
5 changes: 5 additions & 0 deletions argocd/media/bazarr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ extraEnv:
value: "5432"
- name: POSTGRES_DATABASE
value: bazarr
- name: BAZARR__AUTH__METHOD
value: Forms
extraEnvFrom:
- secretRef:
name: bazarr-vault
volumes:
- name: data
persistentVolumeClaim:
Expand Down
14 changes: 14 additions & 0 deletions argocd/media/prowlarr/manifests/01_external_secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ spec:
kind: SecretStore
name: vault
data:
- secretKey: PROWLARR__AUTH__USERNAME
remoteRef:
conversionStrategy: Default
decodingStrategy: None
metadataPolicy: None
key: secret/data/homelab/prod/prowlarr
property: USERNAME
- secretKey: PROWLARR__AUTH__PASSWORD
remoteRef:
conversionStrategy: Default
decodingStrategy: None
metadataPolicy: None
key: secret/data/homelab/prod/prowlarr
property: PASSWORD
- secretKey: PROWLARR__AUTH__APIKEY
remoteRef:
conversionStrategy: Default
Expand Down
2 changes: 2 additions & 0 deletions argocd/media/prowlarr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ extraEnv:
value: "5432"
- name: PROWLARR__POSTGRES__MAINDB
value: prowlarr
- name: PROWLARR__AUTH__METHOD
value: Forms
extraEnvFrom:
- secretRef:
name: prowlarr-vault
14 changes: 14 additions & 0 deletions argocd/media/radarr/manifests/01_external_secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ spec:
kind: SecretStore
name: vault
data:
- secretKey: RADARR__AUTH__USERNAME
remoteRef:
conversionStrategy: Default
decodingStrategy: None
metadataPolicy: None
key: secret/data/homelab/prod/radarr
property: USERNAME
- secretKey: RADARR__AUTH__PASSWORD
remoteRef:
conversionStrategy: Default
decodingStrategy: None
metadataPolicy: None
key: secret/data/homelab/prod/radarr
property: PASSWORD
- secretKey: RADARR__AUTH__APIKEY
remoteRef:
conversionStrategy: Default
Expand Down
2 changes: 2 additions & 0 deletions argocd/media/radarr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ extraEnv:
value: "5432"
- name: RADARR__POSTGRES__MAINDB
value: radarr
- name: RADARR__AUTH__METHOD
value: Forms
extraEnvFrom:
- secretRef:
name: radarr-vault
Expand Down
14 changes: 14 additions & 0 deletions argocd/media/sonarr/manifests/01_external_secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ spec:
kind: SecretStore
name: vault
data:
- secretKey: SONARR__AUTH__USERNAME
remoteRef:
conversionStrategy: Default
decodingStrategy: None
metadataPolicy: None
key: secret/data/homelab/prod/sonarr
property: USERNAME
- secretKey: SONARR__AUTH__PASSWORD
remoteRef:
conversionStrategy: Default
decodingStrategy: None
metadataPolicy: None
key: secret/data/homelab/prod/sonarr
property: PASSWORD
- secretKey: SONARR__AUTH__APIKEY
remoteRef:
conversionStrategy: Default
Expand Down
2 changes: 2 additions & 0 deletions argocd/media/sonarr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ extraEnv:
value: "5432"
- name: SONARR__POSTGRES__MAINDB
value: sonarr
- name: SONARR__AUTH__METHOD
value: Forms
extraEnvFrom:
- secretRef:
name: sonarr-vault
Expand Down

0 comments on commit d19f76a

Please sign in to comment.