This commit is contained in:
m0duspwnens
2024-08-09 11:53:07 -04:00
parent 3643303a51
commit a28ac3bee6
9 changed files with 90 additions and 34 deletions
@@ -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:
@@ -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
+24
View File
@@ -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 %}