[fix] Further .sh extension removal

* Remove more .sh extensions
* Edit jinja markup to prevent whitespace trimming
This commit is contained in:
William Wernert
2020-01-23 15:06:40 -05:00
parent d2a7ef1e64
commit 4a288a0d63
7 changed files with 12 additions and 12 deletions

View File

@@ -10,8 +10,6 @@ so-auth-api-dir:
so-auth-api: so-auth-api:
docker_container.running: docker_container.running:
- require:
- so-auth-api-image
- image: {{ MASTER }}:5000/soshybridhunter/so-auth-api:HH{{ VERSION }} - image: {{ MASTER }}:5000/soshybridhunter/so-auth-api:HH{{ VERSION }}
- hostname: so-auth-api - hostname: so-auth-api
- name: so-auth-api - name: so-auth-api
@@ -24,8 +22,6 @@ so-auth-api:
so-auth-ui: so-auth-ui:
docker_container.running: docker_container.running:
- require:
- so-auth-ui-image
- image: {{ MASTER }}:5000/soshybridhunter/so-auth-ui:HH{{ VERSION }} - image: {{ MASTER }}:5000/soshybridhunter/so-auth-ui:HH{{ VERSION }}
- hostname: so-auth-ui - hostname: so-auth-ui
- name: so-auth-ui - name: so-auth-ui

View File

@@ -98,7 +98,7 @@ so-cortex:
cortexscript: cortexscript:
cmd.script: cmd.script:
- source: salt://hive/thehive/scripts/cortex_init.sh - source: salt://hive/thehive/scripts/cortex_init
- cwd: /opt/so - cwd: /opt/so
- template: jinja - template: jinja
@@ -119,6 +119,6 @@ so-thehive:
hivescript: hivescript:
cmd.script: cmd.script:
- source: salt://hive/thehive/scripts/hive_init.sh - source: salt://hive/thehive/scripts/hive_init
- cwd: /opt/so - cwd: /opt/so
- template: jinja - template: jinja

View File

@@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
{%- set MASTERIP = salt['pillar.get']('static:masterip', '') %} {% set MASTERIP = salt['pillar.get']('static:masterip', '') %}
{%- set CORTEXUSER = salt['pillar.get']('static:cortexuser', '') %} {%- set CORTEXUSER = salt['pillar.get']('static:cortexuser', '') %}
{%- set CORTEXPASSWORD = salt['pillar.get']('static:cortexpassword', '') %} {%- set CORTEXPASSWORD = salt['pillar.get']('static:cortexpassword', '') %}
{%- set CORTEXKEY = salt['pillar.get']('static:cortexkey', '') %} {%- set CORTEXKEY = salt['pillar.get']('static:cortexkey', '') %}

View File

@@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
{%- set MASTERIP = salt['pillar.get']('static:masterip', '') %} {% set MASTERIP = salt['pillar.get']('static:masterip', '') %}
{%- set HIVEUSER = salt['pillar.get']('static:hiveuser', '') %} {%- set HIVEUSER = salt['pillar.get']('static:hiveuser', '') %}
{%- set HIVEPASSWORD = salt['pillar.get']('static:hivepassword', '') %} {%- set HIVEPASSWORD = salt['pillar.get']('static:hivepassword', '') %}
{%- set HIVEKEY = salt['pillar.get']('static:hivekey', '') %} {%- set HIVEKEY = salt['pillar.get']('static:hivekey', '') %}

View File

@@ -1,5 +1,7 @@
{%- set ES = salt['pillar.get']('master:mainip', '') -%} #!/bin/bash
{% set ES = salt['pillar.get']('master:mainip', '') %}
{%- set MASTER = grains['master'] %} {%- set MASTER = grains['master'] %}
# Wait for ElasticSearch to come up, so that we can query for version infromation # Wait for ElasticSearch to come up, so that we can query for version infromation
echo -n "Waiting for ElasticSearch..." echo -n "Waiting for ElasticSearch..."
COUNT=0 COUNT=0

View File

@@ -1,4 +1,6 @@
{%- set ES = salt['pillar.get']('master:mainip', '') -%} #!/bin/bash
{% set ES = salt['pillar.get']('master:mainip', '') %}
# Wait for ElasticSearch to come up, so that we can query for version infromation # Wait for ElasticSearch to come up, so that we can query for version infromation
echo -n "Waiting for ElasticSearch..." echo -n "Waiting for ElasticSearch..."
COUNT=0 COUNT=0

View File

@@ -6,7 +6,7 @@ crossclusterson:
- shell: /bin/bash - shell: /bin/bash
- cwd: /opt/so - cwd: /opt/so
- runas: socore - runas: socore
- source: salt://utility/bin/crossthestreams.sh - source: salt://utility/bin/crossthestreams
- template: jinja - template: jinja
{% endif %} {% endif %}
@@ -16,6 +16,6 @@ fixsearch:
- shell: /bin/bash - shell: /bin/bash
- cwd: /opt/so - cwd: /opt/so
- runas: socore - runas: socore
- source: salt://utility/bin/eval.sh - source: salt://utility/bin/eval
- template: jinja - template: jinja
{% endif %} {% endif %}