,如何声明子目录?
我想调用那些文件/目录(在top.sls
中):
myHost salt # ls states/rcc/env_py/*
states/rcc/env_py/env.py.template states/rcc/env_py/init.sls
所以我添加了salt:// states / rcc / env_py就像这样
myHost salt # cat top.sls
base:
'*':
- webserver
- salt://states/rcc/env_py
我遇到了这个错误:
Data failed to compile:
----------
No matching sls found for 'salt://states/rcc/env_py' in env 'base'
执行后:
salt '*' state.highstate
答案 0 :(得分:2)
更改:
salt://states/rcc/env_py
到
states/rcc/env_py/
解决了我的问题。