diff --git a/salt/common/files/vimrc b/salt/common/files/vimrc index 4234cf772..8d15debb8 100644 --- a/salt/common/files/vimrc +++ b/salt/common/files/vimrc @@ -3,4 +3,3 @@ filetype plugin indent on " Sets .sls files to use YAML syntax highlighting autocmd BufNewFile,BufRead *.sls set syntax=yaml -set number \ No newline at end of file diff --git a/salt/common/tools/sbin/so-minion b/salt/common/tools/sbin/so-minion index 7e4932ba0..bde47991f 100755 --- a/salt/common/tools/sbin/so-minion +++ b/salt/common/tools/sbin/so-minion @@ -206,7 +206,7 @@ function createSTANDALONE() { } function testConnection() { - retry 5 10 "salt '$MINION_ID' test.ping" 0 + retry 15 3 "salt '$MINION_ID' test.ping" True local ret=$? if [[ $ret != 0 ]]; then echo "The Minion has been accepted but is not online. Try again later" @@ -230,9 +230,7 @@ if [[ "$OPERATION" = 'add' || "$OPERATION" = 'setup' ]]; then if [ $OPERATION != 'setup' ]; then # Accept the salt key acceptminion - # Let the keys echange - sleep 3 - # Need logic here to try and salt ping.. If it doesn't work need to do something + # Test to see if the minion was accepted testConnection # Pull the info from the file to build what is needed getinstallinfo diff --git a/salt/elastalert/init.sls b/salt/elastalert/init.sls index f62c1fed7..1db789935 100644 --- a/salt/elastalert/init.sls +++ b/salt/elastalert/init.sls @@ -5,6 +5,7 @@ {% if sls in allowed_states %} {% from 'vars/globals.map.jinja' import GLOBALS %} +{% from 'docker/docker.map.jinja' import DOCKER %} {% from 'elastalert/elastalert_config.map.jinja' import ELASTALERT as elastalert_config with context %} # Create the group @@ -86,6 +87,9 @@ so-elastalert: - hostname: elastalert - name: so-elastalert - user: so-elastalert + - networks: + - sosbridge: + - ipv4_address: {{ DOCKER.containers['so-elastalert'].ip }} - detach: True - binds: - /opt/so/rules/elastalert:/opt/elastalert/rules/:ro diff --git a/salt/filebeat/defaults.yaml b/salt/filebeat/defaults.yaml index 31ed8e0b0..83bb9b22e 100644 --- a/salt/filebeat/defaults.yaml +++ b/salt/filebeat/defaults.yaml @@ -27,6 +27,7 @@ filebeat: - smtp - snmp - socks + - software - ssh - ssl - tunnel