mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
[fix] Make sure Playbook is up before creating user
This commit is contained in:
@@ -1,9 +1,18 @@
|
|||||||
|
{% set MAINIP = salt['pillar.get']('global:managerip') %}
|
||||||
|
|
||||||
# This state will create the SecOps Automation user within Playbook
|
# This state will create the SecOps Automation user within Playbook
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- playbook
|
- playbook
|
||||||
|
|
||||||
|
cmd.run:
|
||||||
|
- name: until nc -z {{ MAINIP }} 3200; do sleep 1; done
|
||||||
|
- timeout: 30
|
||||||
|
- onchanges:
|
||||||
|
- cmd: create_user
|
||||||
|
|
||||||
salt://playbook/files/automation_user_create.sh:
|
create_user:
|
||||||
cmd.script:
|
cmd.script:
|
||||||
|
- source: salt://playbook/files/automation_user_create.sh
|
||||||
- cwd: /root
|
- cwd: /root
|
||||||
- template: jinja
|
- template: jinja
|
||||||
|
|||||||
Reference in New Issue
Block a user