aboutsummaryrefslogtreecommitdiffstats
path: root/roles/vmm
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-14 16:55:22 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-14 16:55:22 +0000
commit08be513b9bd3d41a69b9ea1009694fa7bc4f8876 (patch)
tree3f2a16cf1cb394508912ba179b4dbbcc8bfa63de /roles/vmm
parentdbfa30d3276cffcd242075a927fcb0efa55829c1 (diff)
downloadrules-08be513b9bd3d41a69b9ea1009694fa7bc4f8876.tar.gz
roles/vmm: Remove extra lookup for password location
Diffstat (limited to 'roles/vmm')
-rw-r--r--roles/vmm/defaults/main.yml2
-rw-r--r--roles/vmm/templates/autoinstall.conf.j22
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/vmm/defaults/main.yml b/roles/vmm/defaults/main.yml
index 5ba92c6..91bae08 100644
--- a/roles/vmm/defaults/main.yml
+++ b/roles/vmm/defaults/main.yml
@@ -7,7 +7,7 @@ vmm_configuration_file: /etc/vm.conf
vmm_default_timezone: Europe/Stockholm
vmm_default_fallback_http: true
-vmm_default_password: "{{ lookup('password', lookup('env', 'PWD') ~ '/files/secrets/hosts/default/root-password') }}"
+vmm_default_password: "{{ lookup('password', 'files/secrets/hosts/default/root@system.password') }}"
vmm_default_ssh_key: "{{ lookup('file', lookup('env', 'PWD') ~ '/files/keys/rgoncalves.pub') }}"
vmm_image_openbsd_kernel_prefix: /bsd.vmm
diff --git a/roles/vmm/templates/autoinstall.conf.j2 b/roles/vmm/templates/autoinstall.conf.j2
index af6506e..440cc8b 100644
--- a/roles/vmm/templates/autoinstall.conf.j2
+++ b/roles/vmm/templates/autoinstall.conf.j2
@@ -6,7 +6,7 @@ Default IPv4 route = {{ ansible_default_ipv4.gateway }}
DNS domain name = {{ __global_domain_name_hosts }}.{{ __global_domain_name }}
DNS nameservers = {{ __global_domain_name_servers | join (" ") }}
Do you expect to run the X Window System = no
-Password for root = {{ lookup('password', lookup('env', 'PWD') ~ '/files/secrets/hosts/' ~ host.inventory_hostname ~ '/root-password') }}"
+Password for root = {{ lookup('password', 'files/secrets/hosts/' ~ host.inventory_hostname ~ '/root@system.password') }}
Public ssh key for root account = {{ vmm_default_ssh_key }}
Which disk is the root disk = sd0
URL to autopartitioning template for disklabel = http://{{ ansible_default_ipv4.address }}/{{ item.lladdr }}-disklabel.conf
remember that computers suck.