fix reactors

This commit is contained in:
m0duspwnens
2024-08-16 13:37:44 -04:00
parent 67f0934930
commit 7698243caf
5 changed files with 13 additions and 27 deletions
+2 -8
View File
@@ -1,20 +1,14 @@
#!py
# 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.
#!py
import logging
import salt.client
local = salt.client.LocalClient()
from subprocess import call
import yaml
import os
def run():
#logging.error("createEmptyPillar reactor: data: %s" % data)
vm_name = data['kwargs']['name']
logging.error("createEmptyPillar reactor: vm_name: %s" % vm_name)
pillar_root = '/opt/so/saltstack/local/pillar/minions/'
+2 -4
View File
@@ -1,13 +1,11 @@
#!py
# 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.
#!py
import logging
import salt.client
local = salt.client.LocalClient()
from subprocess import call
import yaml
+2 -6
View File
@@ -1,16 +1,12 @@
#!py
# 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.
#!py
import logging
import salt.client
local = salt.client.LocalClient()
from subprocess import call
import yaml
import os
def run():
+2 -4
View File
@@ -1,17 +1,15 @@
#!py
# 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.
#!py
import logging
import salt.client
local = salt.client.LocalClient()
from subprocess import call
import yaml
def run():
def claim_compute(hw_type):