mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
recreate sool9 if user-data or meta-data cloud-init changes
This commit is contained in:
@@ -29,6 +29,17 @@ manage_sha256_sool9:
|
|||||||
- source: salt://libvirt/images/sool9/sool9.sha256
|
- source: salt://libvirt/images/sool9/sool9.sha256
|
||||||
- makedirs: True
|
- makedirs: True
|
||||||
|
|
||||||
|
# Manage cloud-init files
|
||||||
|
manage_metadata_sool9:
|
||||||
|
file.managed:
|
||||||
|
- name: /nsm/libvirt/images/sool9/meta-data
|
||||||
|
- source: salt://libvirt/images/sool9/meta-data
|
||||||
|
|
||||||
|
manage_userdata_sool9:
|
||||||
|
file.managed:
|
||||||
|
- name: /nsm/libvirt/images/sool9/user-data
|
||||||
|
- source: salt://libvirt/images/sool9/user-data
|
||||||
|
|
||||||
# Manage qcow2 image
|
# Manage qcow2 image
|
||||||
manage_qcow2_sool9:
|
manage_qcow2_sool9:
|
||||||
file.managed:
|
file.managed:
|
||||||
@@ -36,27 +47,14 @@ manage_qcow2_sool9:
|
|||||||
- source: salt://libvirt/images/sool9/sool9.qcow2
|
- source: salt://libvirt/images/sool9/sool9.qcow2
|
||||||
- onchanges:
|
- onchanges:
|
||||||
- file: manage_sha256_sool9
|
- file: manage_sha256_sool9
|
||||||
|
- file: manage_metadata_sool9
|
||||||
# Manage cloud-init files
|
- file: manage_userdata_sool9
|
||||||
manage_metadata_sool9:
|
|
||||||
file.managed:
|
|
||||||
- name: /nsm/libvirt/images/sool9/meta-data
|
|
||||||
- source: salt://libvirt/images/sool9/meta-data
|
|
||||||
- require:
|
|
||||||
- file: manage_qcow2_sool9
|
|
||||||
|
|
||||||
manage_userdata_sool9:
|
|
||||||
file.managed:
|
|
||||||
- name: /nsm/libvirt/images/sool9/user-data
|
|
||||||
- source: salt://libvirt/images/sool9/user-data
|
|
||||||
- require:
|
|
||||||
- file: manage_qcow2_sool9
|
|
||||||
|
|
||||||
manage_cidata_sool9:
|
manage_cidata_sool9:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: /nsm/libvirt/images/sool9/sool9-cidata.iso
|
- name: /nsm/libvirt/images/sool9/sool9-cidata.iso
|
||||||
- source: salt://libvirt/images/sool9/sool9-cidata.iso
|
- source: salt://libvirt/images/sool9/sool9-cidata.iso
|
||||||
- require:
|
- onchanges:
|
||||||
- file: manage_qcow2_sool9
|
- file: manage_qcow2_sool9
|
||||||
|
|
||||||
# Define the storage pool
|
# Define the storage pool
|
||||||
|
|||||||
Reference in New Issue
Block a user