mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
manager needs more packages for salt-cloud. change location of priv key for salt-cloud config
This commit is contained in:
@@ -25,12 +25,25 @@ install_xorriso:
|
|||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: xorriso
|
- name: xorriso
|
||||||
|
|
||||||
{% if 'hyper' in grains.id.split('_') | last %}
|
|
||||||
|
|
||||||
install_libvirt-libs:
|
install_libvirt-libs:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: libvirt-libs
|
- name: libvirt-libs
|
||||||
|
|
||||||
|
libvirt_python_wheel:
|
||||||
|
file.recurse:
|
||||||
|
- name: /opt/so/conf/libvirt/source-packages/libvirt-python
|
||||||
|
- source: salt://libvirt/source-packages/libvirt-python
|
||||||
|
- makedirs: True
|
||||||
|
- clean: True
|
||||||
|
|
||||||
|
libvirt_python_module:
|
||||||
|
cmd.run:
|
||||||
|
- name: /opt/saltstack/salt/bin/python3 -m pip install --no-index --find-links=/opt/so/conf/libvirt/source-packages/libvirt-python libvirt-python
|
||||||
|
- onchanges:
|
||||||
|
- file: libvirt_python_wheel
|
||||||
|
|
||||||
|
{% if 'hyper' in grains.id.split('_') | last %}
|
||||||
|
|
||||||
# provides virsh
|
# provides virsh
|
||||||
install_libvirt-client:
|
install_libvirt-client:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
@@ -50,19 +63,6 @@ install_python3-libguestfs:
|
|||||||
- name: python3-libguestfs
|
- name: python3-libguestfs
|
||||||
###
|
###
|
||||||
|
|
||||||
libvirt_python_wheel:
|
|
||||||
file.recurse:
|
|
||||||
- name: /opt/so/conf/libvirt/source-packages/libvirt-python
|
|
||||||
- source: salt://libvirt/source-packages/libvirt-python
|
|
||||||
- makedirs: True
|
|
||||||
- clean: True
|
|
||||||
|
|
||||||
libvirt_python_module:
|
|
||||||
cmd.run:
|
|
||||||
- name: /opt/saltstack/salt/bin/python3 -m pip install --no-index --find-links=/opt/so/conf/libvirt/source-packages/libvirt-python libvirt-python
|
|
||||||
- onchanges:
|
|
||||||
- file: libvirt_python_wheel
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ sool9-{{host}}:
|
|||||||
base_domain: sool9
|
base_domain: sool9
|
||||||
ip_source: qemu-agent
|
ip_source: qemu-agent
|
||||||
ssh_username: soqemussh
|
ssh_username: soqemussh
|
||||||
private_key: /home/soqemussh/.ssh/id_ed25519
|
private_key: /etc/ssh/auth_keys/soqemussh/id_ed25519
|
||||||
sudo: True
|
sudo: True
|
||||||
deploy_command: sh /tmp/.saltcloud-*/deploy.sh
|
deploy_command: sh /tmp/.saltcloud-*/deploy.sh
|
||||||
script_args: -F -x python3 stable 3006.9
|
script_args: -F -x python3 stable 3006.9
|
||||||
|
|||||||
Reference in New Issue
Block a user