From 5d97ad28f2a16aa60a974437183c3f663269c032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Wed, 8 Dec 2021 17:07:23 +0000 Subject: roles/vmm: Default path for autoinstall http files --- roles/vmm/defaults/main.yml | 3 +++ roles/vmm/tasks/autoinstall_configuration.yml | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'roles') diff --git a/roles/vmm/defaults/main.yml b/roles/vmm/defaults/main.yml index 13e8b92..2e2ceb1 100644 --- a/roles/vmm/defaults/main.yml +++ b/roles/vmm/defaults/main.yml @@ -1,4 +1,5 @@ vmm_root_dir: /data/vmm +vmm_autoinstall_dir: /var/www/htdocs/autoinstall vmm_iso_dir: /data/vmm/iso.d vmm_disk_dir: /data/vmm/disk.d vmm_disk_format: qcow2 @@ -23,6 +24,8 @@ vmm_iso: url: https://dl-cdn.alpinelinux.org/alpine/v3.15/releases/x86_64/alpine-virt-3.15.0-x86_64.iso checksum: sha256:e97eaedb3bff39a081d1d7e67629d5c0e8fb39677d6a9dd1eaf2752e39061e02 +vmm_vms: {} + # vmm_vms: # - name: # image: diff --git a/roles/vmm/tasks/autoinstall_configuration.yml b/roles/vmm/tasks/autoinstall_configuration.yml index ee1b98b..43c63ff 100644 --- a/roles/vmm/tasks/autoinstall_configuration.yml +++ b/roles/vmm/tasks/autoinstall_configuration.yml @@ -3,7 +3,7 @@ - name: create autoinstall directory file: - path: /var/www/htdocs/autoinstall + path: "{{ vmm_autoinstall_dir }}" owner: www group: www mode: 0700 @@ -12,7 +12,7 @@ - name: generate autoinstall files template: &generation_steps src: autoinstall.conf.j2 - dest: "/var/www/htdocs/autoinstall/{{ item.lladdr }}-install.conf" + dest: "{{ vmm_autoinstall_dir }}/{{ item.lladdr }}-install.conf" owner: www group: www mode: 0640 @@ -22,7 +22,7 @@ - name: generate autoupgrade files template: <<: *generation_steps - dest: "/var/www/htdocs/autoinstall/{{ item.lladdr }}-upgrade.conf" + dest: "{{ vmm_autoinstall_dir }}/{{ item.lladdr }}-upgrade.conf" - name: generate disklabel file template: -- cgit v1.2.3