Files
securityonion/salt/playbook/automation_user_create.sls
Mike Reeves 2bd9dd80e2 Move In Day
2022-09-07 09:06:25 -04:00

20 lines
444 B
Plaintext

{% from 'vars/globals.map.jinja' import GLOBALS %}
# This state will create the SecOps Automation user within Playbook
include:
- playbook
wait_for_playbook:
cmd.run:
- name: until nc -z {{ GLOBALS.manager_ip }} 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