27 lines
786 B
YAML
27 lines
786 B
YAML
---
|
|
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/externalsecret_v1beta1.json
|
|
apiVersion: external-secrets.io/v1beta1
|
|
kind: ExternalSecret
|
|
metadata:
|
|
name: mosquitto
|
|
spec:
|
|
secretStoreRef:
|
|
kind: ClusterSecretStore
|
|
name: onepassword-connect
|
|
target:
|
|
name: mosquitto-secret
|
|
creationPolicy: Owner
|
|
template:
|
|
engineVersion: v2
|
|
data:
|
|
mosquitto_pwd: |
|
|
{{ .mosquitto_username }}:{{ .mosquitto_password }}
|
|
{{ .mosquitto_zwave_username }}:{{ .mosquitto_zwave_password }}
|
|
{{ .mosquitto_home_assistant_username }}:{{ .mosquitto_home_assistant_password }}
|
|
dataFrom:
|
|
- extract:
|
|
key: mosquitto
|
|
rewrite:
|
|
- regexp:
|
|
source: "(.*)"
|
|
target: "mosquitto_$1"
|