mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-18 06:52:56 +01:00
recreate the base vm if any of the cloud init files change
This commit is contained in:
@@ -93,6 +93,9 @@ stop_vm_sool9:
|
|||||||
- name: sool9
|
- name: sool9
|
||||||
- onchanges:
|
- onchanges:
|
||||||
- file: manage_qcow2_sool9
|
- file: manage_qcow2_sool9
|
||||||
|
- file: manage_metadata_sool9
|
||||||
|
- file: manage_userdata_sool9
|
||||||
|
- file: manage_cidata_sool9
|
||||||
- require_in:
|
- require_in:
|
||||||
- module: undefine_vm_sool9
|
- module: undefine_vm_sool9
|
||||||
- onlyif:
|
- onlyif:
|
||||||
@@ -105,6 +108,9 @@ undefine_vm_sool9:
|
|||||||
- vm_: sool9
|
- vm_: sool9
|
||||||
- onchanges:
|
- onchanges:
|
||||||
- file: manage_qcow2_sool9
|
- file: manage_qcow2_sool9
|
||||||
|
- file: manage_metadata_sool9
|
||||||
|
- file: manage_userdata_sool9
|
||||||
|
- file: manage_cidata_sool9
|
||||||
# Note: When VM doesn't exist, you'll see "error: failed to get domain 'sool9'" - this is expected
|
# Note: When VM doesn't exist, you'll see "error: failed to get domain 'sool9'" - this is expected
|
||||||
# [ERROR ] Command 'virsh' failed with return code: 1
|
# [ERROR ] Command 'virsh' failed with return code: 1
|
||||||
# [ERROR ] stdout: error: failed to get domain 'sool9'
|
# [ERROR ] stdout: error: failed to get domain 'sool9'
|
||||||
@@ -128,6 +134,9 @@ create_vm_sool9:
|
|||||||
- pkg: install_virt-install
|
- pkg: install_virt-install
|
||||||
- onchanges:
|
- onchanges:
|
||||||
- file: manage_qcow2_sool9
|
- file: manage_qcow2_sool9
|
||||||
|
- file: manage_metadata_sool9
|
||||||
|
- file: manage_userdata_sool9
|
||||||
|
- file: manage_cidata_sool9
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{{sls}}_no_license_detected:
|
{{sls}}_no_license_detected:
|
||||||
|
|||||||
Reference in New Issue
Block a user