Skip to content

Instantly share code, notes, and snippets.

MacBook-Pro.local:
----------
State: - module
Name: pip.install
Function: run
Result: True
Comment: Module function pip.install executed
Changes: ret: { pid : 68576
retcode : 0
stderr :
include:
- pyopenssl
tls:
module:
- run
- name: tls.create_self_signed_cert
- C: VN
- ST: HN
- L: Hanoi
@quantonganh
quantonganh / salt-cmd.run
Last active December 30, 2015 02:59
Salt - cmd.run loop
ulimit/absent.sls
```
{% for file in salt['cmd.run']('ls /Users/quanta/salt.ulimit*') %}
{{ file }}:
file:
- absent
{% endfor %}
```
salt '*' cmd.run 'ls /Users/quanta/salt.ulimit*'
MacBook-Pro.local: