mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
fix reactors
This commit is contained in:
@@ -1,20 +1,14 @@
|
|||||||
|
#!py
|
||||||
|
|
||||||
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
|
# 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
|
# 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
|
# https://securityonion.net/license; you may not use this file except in compliance with the
|
||||||
# Elastic License 2.0.
|
# Elastic License 2.0.
|
||||||
|
|
||||||
#!py
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import salt.client
|
|
||||||
local = salt.client.LocalClient()
|
|
||||||
from subprocess import call
|
|
||||||
import yaml
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
#logging.error("createEmptyPillar reactor: data: %s" % data)
|
|
||||||
vm_name = data['kwargs']['name']
|
vm_name = data['kwargs']['name']
|
||||||
logging.error("createEmptyPillar reactor: vm_name: %s" % vm_name)
|
logging.error("createEmptyPillar reactor: vm_name: %s" % vm_name)
|
||||||
pillar_root = '/opt/so/saltstack/local/pillar/minions/'
|
pillar_root = '/opt/so/saltstack/local/pillar/minions/'
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
|
#!py
|
||||||
|
|
||||||
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
|
# 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
|
# 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
|
# https://securityonion.net/license; you may not use this file except in compliance with the
|
||||||
# Elastic License 2.0.
|
# Elastic License 2.0.
|
||||||
|
|
||||||
#!py
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import salt.client
|
|
||||||
local = salt.client.LocalClient()
|
|
||||||
from subprocess import call
|
from subprocess import call
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,12 @@
|
|||||||
|
#!py
|
||||||
|
|
||||||
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
|
# 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
|
# 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
|
# https://securityonion.net/license; you may not use this file except in compliance with the
|
||||||
# Elastic License 2.0.
|
# Elastic License 2.0.
|
||||||
|
|
||||||
#!py
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import salt.client
|
|
||||||
local = salt.client.LocalClient()
|
|
||||||
from subprocess import call
|
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
|
|||||||
@@ -1,17 +1,15 @@
|
|||||||
|
#!py
|
||||||
|
|
||||||
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
|
# 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
|
# 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
|
# https://securityonion.net/license; you may not use this file except in compliance with the
|
||||||
# Elastic License 2.0.
|
# Elastic License 2.0.
|
||||||
|
|
||||||
#!py
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import salt.client
|
import salt.client
|
||||||
local = salt.client.LocalClient()
|
local = salt.client.LocalClient()
|
||||||
from subprocess import call
|
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
|
|
||||||
def claim_compute(hw_type):
|
def claim_compute(hw_type):
|
||||||
|
|||||||
@@ -57,14 +57,14 @@ salt_master_service:
|
|||||||
#- salt/cloud/*/creating':
|
#- salt/cloud/*/creating':
|
||||||
#- salt/cloud/*/requesting
|
#- salt/cloud/*/requesting
|
||||||
# - 'salt/cloud/*/deploying':
|
# - 'salt/cloud/*/deploying':
|
||||||
# - /srv/salt/reactor/createEmptyPillar.sls
|
# - /opt/so/saltstack/default/salt/reactor/createEmptyPillar.sls
|
||||||
# - 'setup/so-minion':
|
# - 'setup/so-minion':
|
||||||
# - /srv/salt/reactor/setup.sls
|
# - /opt/so/saltstack/default/salt/reactor/setup.sls
|
||||||
# - 'salt/cloud/*/created':
|
# - 'salt/cloud/*/created':
|
||||||
# - /srv/salt/reactor/virtUpdate.sls
|
# - /opt/so/saltstack/default/salt/reactor/virtUpdate.sls
|
||||||
# - 'salt/cloud/*/destroyed':
|
# - 'salt/cloud/*/destroyed':
|
||||||
# - /srv/salt/reactor/virtReleaseHardware.sls
|
# - /opt/so/saltstack/default/salt/reactor/virtReleaseHardware.sls
|
||||||
# - /srv/salt/reactor/deleteKey.sls
|
# - /opt/so/saltstack/default/salt/reactor/deleteKey.sls
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user