mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Set package manager source in patch pillar for yum.conf
This commit is contained in:
@@ -12,7 +12,7 @@ installonly_limit={{ salt['pillar.get']('yum:config:installonly_limit', 2) }}
|
|||||||
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum
|
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum
|
||||||
distroverpkg=centos-release
|
distroverpkg=centos-release
|
||||||
clean_requirements_on_remove=1
|
clean_requirements_on_remove=1
|
||||||
{% if (grains['role'] not in ['so-eval','so-managersearch', 'so-manager', 'so-standalone']) and salt['pillar.get']('global:managerupdate', '0') -%}
|
{% if (grains['role'] not in ['so-eval','so-managersearch', 'so-manager', 'so-standalone']) and salt['pillar.get']('global:managerupdate', 'direct') == 'manager' -%}
|
||||||
proxy=http://{{ salt['pillar.get']('yum:config:proxy', salt['config.get']('master')) }}:3142
|
proxy=http://{{ salt['pillar.get']('yum:config:proxy', salt['config.get']('master')) }}:3142
|
||||||
{% elif proxy -%}
|
{% elif proxy -%}
|
||||||
proxy={{ proxy }}
|
proxy={{ proxy }}
|
||||||
|
|||||||
@@ -1669,7 +1669,6 @@ manager_global() {
|
|||||||
" fleet_ip: 'N/A'"\
|
" fleet_ip: 'N/A'"\
|
||||||
" sensoronikey: '$SENSORONIKEY'"\
|
" sensoronikey: '$SENSORONIKEY'"\
|
||||||
" wazuh: $WAZUH"\
|
" wazuh: $WAZUH"\
|
||||||
" managerupdate: $MANAGERUPDATES"\
|
|
||||||
" imagerepo: '$IMAGEREPO'"\
|
" imagerepo: '$IMAGEREPO'"\
|
||||||
" pipeline: 'redis'"\
|
" pipeline: 'redis'"\
|
||||||
"sensoroni:"\
|
"sensoroni:"\
|
||||||
@@ -1865,9 +1864,16 @@ patch_pillar() {
|
|||||||
|
|
||||||
local pillar_file=$temp_install_dir/pillar/minions/$MINION_ID.sls
|
local pillar_file=$temp_install_dir/pillar/minions/$MINION_ID.sls
|
||||||
|
|
||||||
|
if [[ $MANAGERUPDATES == 1 ]]; then
|
||||||
|
local source="manager"
|
||||||
|
else
|
||||||
|
local source="direct"
|
||||||
|
fi
|
||||||
|
|
||||||
printf '%s\n'\
|
printf '%s\n'\
|
||||||
"patch:"\
|
"patch:"\
|
||||||
" os:"\
|
" os:"\
|
||||||
|
" source: $source"\
|
||||||
" schedule_name: '$PATCHSCHEDULENAME'"\
|
" schedule_name: '$PATCHSCHEDULENAME'"\
|
||||||
" enabled: True"\
|
" enabled: True"\
|
||||||
" splay: 300"\
|
" splay: 300"\
|
||||||
|
|||||||
Reference in New Issue
Block a user