From 2ba8a87c9db952459b337958df8a9d44e91b0f5a Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Thu, 9 Jan 2025 16:20:56 -0500 Subject: [PATCH] add directory where qcow2 images will be distributed from --- salt/libvirt/images/coreol9Small/README | 1 + salt/libvirt/images/init.sls | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 salt/libvirt/images/coreol9Small/README create mode 100644 salt/libvirt/images/init.sls diff --git a/salt/libvirt/images/coreol9Small/README b/salt/libvirt/images/coreol9Small/README new file mode 100644 index 000000000..28d066458 --- /dev/null +++ b/salt/libvirt/images/coreol9Small/README @@ -0,0 +1 @@ +# The files in this directory (/opt/so/saltstack/local/salt/libvirt/images/coreol9Small) are generated by createvm.sh. They are then distributed to the hypervisors where a storage pool will be created then the image can be installed. diff --git a/salt/libvirt/images/init.sls b/salt/libvirt/images/init.sls new file mode 100644 index 000000000..605af2368 --- /dev/null +++ b/salt/libvirt/images/init.sls @@ -0,0 +1,6 @@ +# the source location will be /opt/so/saltstack/local/salt/libvirt/imaages/coreol9Small +# this will need to change to save the images to /nsm +baseimagefiles: + file.recurse: + - name: /var/lib/libvirt/images/coreol9Small/ + - source: salt://libvirt/images/coreol9Small/