mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #13425 from Security-Onion-Solutions/salt3006.9
Salt3006.9
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# version cannot be used elsewhere in this pillar as soup is grepping for it to determine if Salt needs to be patched
|
# version cannot be used elsewhere in this pillar as soup is grepping for it to determine if Salt needs to be patched
|
||||||
salt:
|
salt:
|
||||||
master:
|
master:
|
||||||
version: 3006.6
|
version: 3006.9
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# version cannot be used elsewhere in this pillar as soup is grepping for it to determine if Salt needs to be patched
|
# version cannot be used elsewhere in this pillar as soup is grepping for it to determine if Salt needs to be patched
|
||||||
salt:
|
salt:
|
||||||
minion:
|
minion:
|
||||||
version: 3006.6
|
version: 3006.9
|
||||||
check_threshold: 3600 # in seconds, threshold used for so-salt-minion-check. any value less than 600 seconds may cause a lot of salt-minion restarts since the job to touch the file occurs every 5-8 minutes by default
|
check_threshold: 3600 # in seconds, threshold used for so-salt-minion-check. any value less than 600 seconds may cause a lot of salt-minion restarts since the job to touch the file occurs every 5-8 minutes by default
|
||||||
service_start_delay: 30 # in seconds.
|
service_start_delay: 30 # in seconds.
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
{% set service_start_delay = SALTMINION.salt.minion.service_start_delay %}
|
{% set service_start_delay = SALTMINION.salt.minion.service_start_delay %}
|
||||||
|
|
||||||
include:
|
include:
|
||||||
|
- salt.python_modules
|
||||||
- salt
|
- salt
|
||||||
- systemd.reload
|
- systemd.reload
|
||||||
- repo.client
|
- repo.client
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
BIN
salt/salt/module_packages/docker/docker-7.1.0-py3-none-any.whl
Normal file
BIN
salt/salt/module_packages/docker/docker-7.1.0-py3-none-any.whl
Normal file
Binary file not shown.
BIN
salt/salt/module_packages/docker/idna-3.7-py3-none-any.whl
Normal file
BIN
salt/salt/module_packages/docker/idna-3.7-py3-none-any.whl
Normal file
Binary file not shown.
Binary file not shown.
BIN
salt/salt/module_packages/docker/urllib3-2.2.2-py3-none-any.whl
Normal file
BIN
salt/salt/module_packages/docker/urllib3-2.2.2-py3-none-any.whl
Normal file
Binary file not shown.
21
salt/salt/python_modules.sls
Normal file
21
salt/salt/python_modules.sls
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
docker_module_package:
|
||||||
|
file.recurse:
|
||||||
|
- name: /opt/so/conf/salt/module_packages/docker
|
||||||
|
- source: salt://salt/module_packages/docker
|
||||||
|
- clean: True
|
||||||
|
- makedirs: True
|
||||||
|
|
||||||
|
# fail hard on this state so that soup would be cancelled on a manager (eventhough salt would have already updated)
|
||||||
|
# on a non manager, failing hard here will prevent the minion from upgrading
|
||||||
|
# we want to fail hard here to prevent the minion from upgrading and potetially being able to manager docker containers from a dep mismatch
|
||||||
|
docker_python_module_install:
|
||||||
|
cmd.run:
|
||||||
|
- name: /opt/saltstack/salt/bin/python3.10 -m pip install docker --no-index --find-links=/opt/so/conf/salt/module_packages/docker/ --upgrade
|
||||||
|
- onchanges:
|
||||||
|
- file: docker_module_package
|
||||||
|
- failhard: True
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1931,7 +1931,7 @@ saltify() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
salt_install_module_deps() {
|
salt_install_module_deps() {
|
||||||
logCmd "salt-pip install docker --no-index --only-binary=:all: --find-links files/salt_module_deps/docker/"
|
logCmd "salt-call state.apply salt.python_modules --local --file-root=../salt/"
|
||||||
}
|
}
|
||||||
|
|
||||||
salt_patch_x509_v2() {
|
salt_patch_x509_v2() {
|
||||||
|
|||||||
Reference in New Issue
Block a user