mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
* Increase timeout for port check * Exit with non-zero code in user create script if timeout exceeded or error occurs
20 lines
439 B
Plaintext
20 lines
439 B
Plaintext
{% set MAINIP = salt['pillar.get']('global:managerip') %}
|
|
|
|
# This state will create the SecOps Automation user within Playbook
|
|
|
|
include:
|
|
- playbook
|
|
|
|
wait_for_playbook:
|
|
cmd.run:
|
|
- name: until nc -z {{ MAINIP }} 3200; do sleep 1; done
|
|
- timeout: 300
|
|
|
|
create_user:
|
|
cmd.script:
|
|
- source: salt://playbook/files/automation_user_create.sh
|
|
- cwd: /root
|
|
- template: jinja
|
|
- onchanges:
|
|
- cmd: wait_for_playbook
|