本文摘自:https://www.jianshu.com/p/8c478fa04531
1、saltstack在模块中自定义变量 set
[root@saltstack-master test]# cat test.sls
{% set files = "test" %}
echo_files_name:
cmd.run:
- names:
- echo {{ files }}
2、saltstack在模块中定义执行顺序 order
nginx:
pkg:
- installed
- order: 1/etc/nginx/nginx.conf:
file.managed:
- source: salt://nginx.conf
- require:
- pkg: nginx_install
- order: 2
3、