mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-01-31 12:23:55 +01:00
changes for syncing users
This commit is contained in:
@@ -67,5 +67,7 @@ peer:
|
||||
reactor:
|
||||
- 'so/fleet':
|
||||
- salt://reactor/fleet.sls
|
||||
- salt/beacon/*/inotify//watch_sqlite.db:
|
||||
- salt/beacon/*/watch_sqlite_db//opt/so/conf/kratos/db/sqlite.db
|
||||
- salt://reactor/kratos.sls
|
||||
|
||||
|
||||
|
||||
@@ -174,6 +174,7 @@ elastic_curl_config:
|
||||
- source: salt://elasticsearch/curl.config
|
||||
- mode: 600
|
||||
- show_changes: False
|
||||
- makedirs: True
|
||||
|
||||
# Sync some Utilities
|
||||
utilsyncscripts:
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
beacons:
|
||||
watch_sqlite.db:
|
||||
watch_sqlite_db:
|
||||
- files:
|
||||
/opt/so/conf/kratos/db/sqlite.db: {}
|
||||
/opt/so/conf/kratos/db/sqlite.db:
|
||||
mask:
|
||||
- modify
|
||||
- beacon_module: inotify
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
include:
|
||||
- elasticsearch.auth
|
||||
- salt.minion
|
||||
|
||||
socore_own_saltstack:
|
||||
file.directory:
|
||||
@@ -125,6 +126,8 @@ beacons_config:
|
||||
file.managed:
|
||||
- name: /etc/salt/minion.d/beacons.conf
|
||||
- source: salt://manager/files/beacons.conf
|
||||
- onchanges_in:
|
||||
- service: salt_minion_service
|
||||
|
||||
{% else %}
|
||||
|
||||
|
||||
@@ -2,4 +2,4 @@ so_user_sync:
|
||||
local.cmd.run:
|
||||
- tgt: {{ data['data']['id'] }}
|
||||
- arg:
|
||||
- so-user sync
|
||||
- /usr/sbin/so-user sync
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
{% from 'salt/map.jinja' import PYINOTIFYPACKAGE with context%}
|
||||
{% from 'salt/map.jinja' import PYTHONINSTALLER with context%}
|
||||
|
||||
patch_package:
|
||||
pkg.installed:
|
||||
- name: patch
|
||||
- name: patch
|
||||
|
||||
pyinotify:
|
||||
{{PYTHONINSTALLER}}.installed:
|
||||
- name: {{ PYINOTIFYPACKAGE }}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
{% set PYTHON3INFLUX= 'influxdb == ' ~ PYTHONINFLUXVERSION %}
|
||||
{% set PYTHON3INFLUXDEPS= ['certifi', 'chardet', 'python-dateutil', 'pytz', 'requests'] %}
|
||||
{% set PYTHONINSTALLER = 'pip' %}
|
||||
{% set PYINOTIFYPACKAGE = 'pyinotify' %}
|
||||
{% else %}
|
||||
{% set SPLITCHAR = '-' %}
|
||||
{% set SALTNOTHELD = salt['cmd.run']('yum versionlock list | grep -q salt ; echo $?', python_shell=True) %}
|
||||
@@ -21,6 +22,7 @@
|
||||
{% set PYTHON3INFLUX= 'securityonion-python3-influxdb' %}
|
||||
{% set PYTHON3INFLUXDEPS= ['python36-certifi', 'python36-chardet', 'python36-dateutil', 'python36-pytz', 'python36-requests'] %}
|
||||
{% set PYTHONINSTALLER = 'pkg' %}
|
||||
{% set PYINOTIFYPACKAGE = 'securityonion-python3-pyinotify' %}
|
||||
{% endif %}
|
||||
|
||||
{% set INSTALLEDSALTVERSION = salt['pkg.version']('salt-minion').split(SPLITCHAR)[0] %}
|
||||
@@ -33,4 +35,4 @@
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% set UPGRADECOMMAND = 'echo Already running Salt Minion version ' ~ SALTVERSION %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user