ensure file permissions of libvirt images

This commit is contained in:
Josh Patterson
2025-04-24 12:59:06 -04:00
parent 142609ea67
commit 4df3070a1d

View File

@@ -16,6 +16,15 @@
include: include:
- libvirt.packages - libvirt.packages
nsm_libvirt_images:
file.directory:
- name: /nsm/libvirt/images/sool9
- dir_mode: 775
- file_mode: 640
- recurse:
- mode
- makedirs: True
# Remove hash file if image isn't present. This will allow for the image to redownload and initialize. # Remove hash file if image isn't present. This will allow for the image to redownload and initialize.
remove_sha256_sool9: remove_sha256_sool9:
file.absent: file.absent:
@@ -27,7 +36,6 @@ manage_sha256_sool9:
file.managed: file.managed:
- name: /nsm/libvirt/images/sool9/sool9.sha256 - name: /nsm/libvirt/images/sool9/sool9.sha256
- source: salt://libvirt/images/sool9/sool9.sha256 - source: salt://libvirt/images/sool9/sool9.sha256
- makedirs: True
# Manage cloud-init files # Manage cloud-init files
manage_metadata_sool9: manage_metadata_sool9: