我无法调用sls文件的单个状态。
整个sls文件有效
这有效:
salt-ssh w123 state.sls monitoring
这有效:
salt-ssh w123 state.show_sls monitoring
以上输出的一项:
monitoring_packages:
----------
__env__:
base
__sls__:
monitoring.packages
pkg:
|_
----------
pkgs:
- python-psutil
- installed
|_
----------
order:
10000
我尝试了什么
现在,我只想调用monitoring_packages
,而不是整个sls文件:
失败:
salt:/srv # salt-ssh w123 state.sls_id monitoring_packages monitoring
w123:
Data failed to compile:
----------
No matching sls found for 'monitoring' in env 'base'
失败:
salt:/srv # salt-ssh w123 state.single monitoring.monitoring_packages
w123:
TypeError encountered executing state.single: single() takes at least 2 arguments (1 given)
题
如何称呼我的单身状态monitoring_packages
?
版
salt:/srv # salt-ssh --version
salt-ssh 2015.8.3 (Beryllium)