mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
Merge pull request #5 from TOoSmOotH/master
Redis and Filebeat fixes to point to IP
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{%- set master = grains['master'] %}
|
||||
{% set master = salt['pillar.get']('static:masterip', '') %}
|
||||
input {
|
||||
redis {
|
||||
host => '{{ master }}'
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{%- if salt['grains.get']('role') == 'so-master' %}
|
||||
{%- set master = salt['pillar.get']('master:mainip', '') -%}
|
||||
{% set master = salt['pillar.get']('static:masterip', '') %}
|
||||
{%- set nodetype = 'master' %}
|
||||
{%- else %}
|
||||
{%- set nodetype = salt['pillar.get']('node:node_type', 'storage') %}
|
||||
{%- set master = grains['master'] %}
|
||||
{% set master = salt['pillar.get']('static:masterip', '') %}
|
||||
{%- endif %}
|
||||
output {
|
||||
redis {
|
||||
|
||||
@@ -409,6 +409,7 @@ master_static() {
|
||||
echo " proxy: $PROXY" >> /opt/so/saltstack/pillar/static.sls
|
||||
echo " broversion: $BROVERSION" >> /opt/so/saltstack/pillar/static.sls
|
||||
echo " ids: $NIDS" >> /opt/so/saltstack/pillar/static.sls
|
||||
echo " masterip: $MAINIP" >> /opt/so/saltstack/pillar/static.sls
|
||||
if [ $MASTERUPDATES == 'MASTER' ]; then
|
||||
echo " masterupdate: 1" >> /opt/so/saltstack/pillar/static.sls
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user