apache/init.sls
httpd:
pkg:
- installed
file.managed:
- name: /etc/httpd/conf/httpd.conf
- require:
- pkg: httpd
file.symlink:
- name: /root/test.lk
- source: salt://apache/init.sls
- require:
- pkg: httpd
service.running:
- enable: True
- watch:
- pkg: httpd
- file: httpd
Data failed to compile:
----------
Name "httpd" in sls "apache" contains multiple state decs of the same type
同样类型的state在同一个id下只能写一次
比如后边你下require file: nginx, ,后边的require写的也是错误的