给定一个名为 package-list 的文件,我想做类似的事情:
salt state.sls install-packages list_to_install=package-list
...然后在 sls 中:
packages:
pkg.installed:
- names:
{% include list_to_install %}
给定一个名为 package-list 的文件,我想做类似的事情:
salt state.sls install-packages list_to_install=package-list
...然后在 sls 中:
packages:
pkg.installed:
- names:
{% include list_to_install %}