contains multiple state decs of the same type

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写的也是错误的

posted @ 2013-09-25 23:26  风刃  阅读(464)  评论(0编辑  收藏