mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-21 16:33:08 +01:00
[fix] Playbook setup bug fixes
* Increase timeout for port check * Exit with non-zero code in user create script if timeout exceeded or error occurs
This commit is contained in:
@@ -8,12 +8,12 @@ include:
|
||||
wait_for_playbook:
|
||||
cmd.run:
|
||||
- name: until nc -z {{ MAINIP }} 3200; do sleep 1; done
|
||||
- timeout: 30
|
||||
- onchanges:
|
||||
- cmd: create_user
|
||||
- timeout: 300
|
||||
|
||||
create_user:
|
||||
cmd.script:
|
||||
- source: salt://playbook/files/automation_user_create.sh
|
||||
- cwd: /root
|
||||
- template: jinja
|
||||
- onchanges:
|
||||
- cmd: wait_for_playbook
|
||||
|
||||
Reference in New Issue
Block a user