aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/vmm/defaults/main.yml3
-rw-r--r--roles/vmm/tasks/autoinstall_configuration.yml6
2 files changed, 6 insertions, 3 deletions
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:
remember that computers suck.