Skip to content

Commit

Permalink
Merge pull request #13425 from Security-Onion-Solutions/salt3006.9
Browse files Browse the repository at this point in the history
Salt3006.9
  • Loading branch information
m0duspwnens authored Aug 2, 2024
2 parents 114ad77 + d9a696a commit aaf5d76
Show file tree
Hide file tree
Showing 20 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion salt/salt/master.defaults.yaml
Original file line number Diff line number Diff line change
@@ -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
salt:
master:
version: 3006.6
version: 3006.9
2 changes: 1 addition & 1 deletion salt/salt/minion.defaults.yaml
Original file line number Diff line number Diff line change
@@ -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
salt:
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
service_start_delay: 30 # in seconds.
1 change: 1 addition & 0 deletions salt/salt/minion.sls
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{% set service_start_delay = SALTMINION.salt.minion.service_start_delay %}
include:
- salt.python_modules
- salt
- systemd.reload
- repo.client
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
21 changes: 21 additions & 0 deletions salt/salt/python_modules.sls
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion setup/so-functions
Original file line number Diff line number Diff line change
Expand Up @@ -1931,7 +1931,7 @@ saltify() {
}

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() {
Expand Down

0 comments on commit aaf5d76

Please sign in to comment.