mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
have soup_scripts remove old salt repo file
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
{% set UPDATE_DIR='/tmp/sogh/securityonion' %}
|
{% set UPDATE_DIR='/tmp/sogh/securityonion' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% set SOVERSION = salt['file.read']('/etc/version').strip() %}
|
||||||
|
|
||||||
remove_common_soup:
|
remove_common_soup:
|
||||||
file.absent:
|
file.absent:
|
||||||
@@ -107,6 +108,17 @@ copy_so-repo-sync_sbin:
|
|||||||
- force: True
|
- force: True
|
||||||
- preserve: True
|
- preserve: True
|
||||||
|
|
||||||
|
{# this is added in 2.4.120 to remove salt repo files pointing to saltproject.io to accomodate the move to broadcom and new bootstrap-salt script #}
|
||||||
|
{% if salt['pkg.version_cmp'](SOVERSION, '2.4.120') == -1 %}
|
||||||
|
{% set saltrepofile = '/etc/yum.repos.d/salt.repo' %}
|
||||||
|
{% if grains.os_family == 'Debian' %}
|
||||||
|
{% set saltrepofile = '/etc/apt/sources.list.d/salt.list' %}
|
||||||
|
{% endif %}
|
||||||
|
remove_saltproject_io_repo:
|
||||||
|
file.absent:
|
||||||
|
- name: {{ saltrepofile }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
fix_23_soup_sbin:
|
fix_23_soup_sbin:
|
||||||
cmd.run:
|
cmd.run:
|
||||||
|
|||||||
Reference in New Issue
Block a user