This commit is contained in:
2026-05-19 11:58:48 +02:00
parent 61161fee52
commit d4bacbb67f
+3 -2
View File
@@ -151,7 +151,8 @@
template { template {
destination = "/home/jd/.ssh/id_ed25519-cert.pub" destination = "/home/jd/.ssh/id_ed25519-cert.pub"
perms = "0644" perms = "0644"
user = "jd"
group = "jd"
contents = <<EOH contents = <<EOH
{{ '{{' }} with secret "ssh/sign/admin" (printf "public_key=%s" (trimSpace (file "/home/jd/.ssh/id_ed25519.pub"))) "valid_principals=jd" {{ '}}' }} {{ '{{' }} with secret "ssh/sign/admin" (printf "public_key=%s" (trimSpace (file "/home/jd/.ssh/id_ed25519.pub"))) "valid_principals=jd" {{ '}}' }}
{{ '{{' }} .Data.signed_key {{ '}}' }} {{ '{{' }} .Data.signed_key {{ '}}' }}
@@ -189,7 +190,7 @@
owner: root owner: root
group: root group: root
mode: '0644' mode: '0644'
- name: Enable and start vault agent service - name: Enable and start vault agent service
systemd: systemd:
name: vault-agent name: vault-agent