add initial tcpreplay state

This commit is contained in:
Wes Lambert
2019-12-11 19:39:03 +00:00
parent dd74c224df
commit c47d163a32

18
salt/tcpreplay/init.sls Normal file
View File

@@ -0,0 +1,18 @@
{% if grains['role'] == 'so-sensor' or grains['role'] == 'so-eval' %}
so-tcpreplayimage:
cmd.run:
- name: docker pull --disable-content-trust=false docker.io/soshybridhunter/so-tcpreplay:HH1.1.4
so-tcpreplay:
docker_container.running:
- require:
- so-tcpreplay
- network_mode: "host"
- image: docker.io/soshybridhunter/so-tcpreplay:HH1.1.4
- name: so-tcpreplay
- user: root
- interactive: True
- tty: True
{% endif %}