mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-06-21 01:44:16 +02:00
virt
This commit is contained in:
@@ -50,16 +50,16 @@ sensor:
|
||||
- setHostname
|
||||
|
||||
core:
|
||||
provider: local-kvm
|
||||
provider: kvm-via-ssh
|
||||
base_domain: jppol9vm
|
||||
ip_source: qemu-agent
|
||||
ssh_username: jpatterson
|
||||
private_key: /home/jpatterson/.ssh/id_rsa
|
||||
ssh_username: onionuser
|
||||
private_key: /home/onionuser/.ssh/id_ed25519
|
||||
sudo: True
|
||||
deploy_command: sh /tmp/.saltcloud-*/deploy.sh
|
||||
script_args: -F -x python3 stable 3006.1
|
||||
minion:
|
||||
master: jppvirt
|
||||
master: jpp90man
|
||||
master_port: 4506
|
||||
startup_states: sls
|
||||
sls_list:
|
||||
|
||||
+7
-7
@@ -1,11 +1,11 @@
|
||||
# Set up a provider with qemu+ssh protocol
|
||||
#kvm-via-ssh:
|
||||
# driver: libvirt
|
||||
# url: qemu+ssh://jpatterson@jppvirt/system?socket=/var/run/libvirt/libvirt-sock
|
||||
kvm-via-ssh:
|
||||
driver: libvirt
|
||||
url: qemu+ssh://onionuser@jpphype1/system?socket=/var/run/libvirt/libvirt-sock
|
||||
|
||||
# Or connect to a local libvirt instance
|
||||
local-kvm:
|
||||
driver: libvirt
|
||||
url: qemu:///system
|
||||
#local-kvm:
|
||||
# driver: libvirt
|
||||
# url: qemu:///system
|
||||
# work around flag for XML validation errors while cloning
|
||||
validate_xml: no
|
||||
# validate_xml: no
|
||||
@@ -0,0 +1,24 @@
|
||||
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
|
||||
# or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at
|
||||
# https://securityonion.net/license; you may not use this file except in compliance with the
|
||||
# Elastic License 2.0.
|
||||
|
||||
{% from 'allowed_states.map.jinja' import allowed_states %}
|
||||
{% if sls in allowed_states %}
|
||||
{% from 'salt/map.jinja' import SALTVERSION %}
|
||||
|
||||
include:
|
||||
- libvirt.packages
|
||||
|
||||
install_salt_cloud:
|
||||
pkg.installed:
|
||||
- name: salt-cloud
|
||||
- version: {{SALTVERSION}}
|
||||
|
||||
{% else %}
|
||||
|
||||
{{sls}}_state_not_allowed:
|
||||
test.fail_without_changes:
|
||||
- name: {{sls}}_state_not_allowed
|
||||
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user