aboutsummaryrefslogtreecommitdiffstats
path: root/roles/vmm/defaults
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-08 19:15:49 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-09 16:43:04 +0000
commitd955edab044335b4b599963df078a4f85d7faa7b (patch)
tree7f8a1937043f9ee628584975ac296a5764e8b29f /roles/vmm/defaults
parentf86e57ffc10bc85168eff90269824d1462c22187 (diff)
downloadrules-d955edab044335b4b599963df078a4f85d7faa7b.tar.gz
roles/vmm: Use lookup for public key and passwords
Diffstat (limited to 'roles/vmm/defaults')
-rw-r--r--roles/vmm/defaults/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/vmm/defaults/main.yml b/roles/vmm/defaults/main.yml
index 2e2ceb1..e91c7a1 100644
--- a/roles/vmm/defaults/main.yml
+++ b/roles/vmm/defaults/main.yml
@@ -5,10 +5,10 @@ vmm_disk_dir: /data/vmm/disk.d
vmm_disk_format: qcow2
vmm_configuration_file: /etc/vm.conf
-vmm_default_password: a
vmm_default_timezone: Europe/Stockholm
vmm_default_fallback_http: true
-vmm_default_ssh_key: a
+vmm_default_password: "{{ lookup('password', lookup('env', 'PWD') ~ '/files/secrets/hosts/default/root-password') }}"
+vmm_default_ssh_key: "{{ lookup('file', lookup('env', 'PWD') ~ '/files/keys/rgoncalves.pub') }}"
vmm_image_openbsd_kernel_prefix: /bsd.vm
remember that computers suck.