Files
securityonion/salt/playbook/automation_user_create.sls
2020-10-09 08:51:35 -04:00

20 lines
432 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: 30
- onchanges:
- cmd: create_user
create_user:
cmd.script:
- source: salt://playbook/files/automation_user_create.sh
- cwd: /root
- template: jinja