mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
hyper
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
include:
|
include:
|
||||||
- libvirt.packages
|
- libvirt.packages
|
||||||
|
- libvirt.ssh.users
|
||||||
|
|
||||||
install_libvirt:
|
install_libvirt:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
@@ -65,6 +66,8 @@ disable_default_bridge:
|
|||||||
- name: virsh net-destroy default && virsh net-autostart default --disable
|
- name: virsh net-destroy default && virsh net-autostart default --disable
|
||||||
- require:
|
- require:
|
||||||
- pkg: install_libvirt-client
|
- pkg: install_libvirt-client
|
||||||
|
- onlyif:
|
||||||
|
- virsh net-info | grep default
|
||||||
|
|
||||||
# this should only run during the first highstate after setup. it will transfer connection from mgmt to br0
|
# this should only run during the first highstate after setup. it will transfer connection from mgmt to br0
|
||||||
down_original_mgmt_interface:
|
down_original_mgmt_interface:
|
||||||
|
|||||||
@@ -49,15 +49,14 @@ sensor:
|
|||||||
sls_list:
|
sls_list:
|
||||||
- setHostname
|
- setHostname
|
||||||
|
|
||||||
{%- for node_type, hosts in HYPERVISORS.items() %}
|
{%- for host in HYPERVISORS %}
|
||||||
{%- for host in hosts %}
|
|
||||||
|
|
||||||
core-{{host}}:
|
core-{{host}}:
|
||||||
provider: kvm-ssh-{{host}}
|
provider: kvm-ssh-{{host}}
|
||||||
base_domain: jppol9vm
|
base_domain: jppol9vm
|
||||||
ip_source: qemu-agent
|
ip_source: qemu-agent
|
||||||
ssh_username: onionuser
|
ssh_username: soqemussh
|
||||||
private_key: /home/onionuser/.ssh/id_ed25519
|
private_key: /home/soqemussh/.ssh/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.1
|
script_args: -F -x python3 stable 3006.1
|
||||||
@@ -69,4 +68,3 @@ core-{{host}}:
|
|||||||
- setHostname
|
- setHostname
|
||||||
|
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endfor %}
|
|
||||||
|
|||||||
@@ -1,17 +1,11 @@
|
|||||||
# Set up a provider with qemu+ssh protocol
|
# Set up a provider with qemu+ssh protocol
|
||||||
#kvm-ssh-jpphype1:
|
{%- for host in HYPERVISORS %}
|
||||||
# driver: libvirt
|
|
||||||
# url: qemu+ssh://soqemussh@jpphype1/system?socket=/var/run/libvirt/libvirt-sock
|
|
||||||
|
|
||||||
{%- for node_type, hosts in HYPERVISORS.items() %}
|
|
||||||
{%- for host in hosts %}
|
|
||||||
|
|
||||||
kvm-ssh-{{host}}:
|
kvm-ssh-{{host}}:
|
||||||
driver: libvirt
|
driver: libvirt
|
||||||
url: qemu+ssh://soqemussh@{{host}}/system?socket=/var/run/libvirt/libvirt-sock
|
url: qemu+ssh://soqemussh@{{host}}/system?socket=/var/run/libvirt/libvirt-sock
|
||||||
|
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endfor %}
|
|
||||||
|
|
||||||
# Or connect to a local libvirt instance
|
# Or connect to a local libvirt instance
|
||||||
#local-kvm:
|
#local-kvm:
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ cloud_providers:
|
|||||||
- name: /etc/salt/cloud.providers.d/libvirt.conf
|
- name: /etc/salt/cloud.providers.d/libvirt.conf
|
||||||
- source: salt://salt/cloud/cloud.providers.d/libvirt.conf.jinja
|
- source: salt://salt/cloud/cloud.providers.d/libvirt.conf.jinja
|
||||||
- defaults:
|
- defaults:
|
||||||
HYPERVISORS: {{pillar.hypervisor.nodes}}
|
HYPERVISORS: {{pillar.hypervisor.nodes.hypervisor}}
|
||||||
- template: jinja
|
- template: jinja
|
||||||
|
|
||||||
cloud_profiles:
|
cloud_profiles:
|
||||||
|
|||||||
Reference in New Issue
Block a user