我想依赖于optional.sls中的base.sls的id monitoring__user
:
base.sls
monitoring__user:
user.present:
- name: {{...}}
optional.sls
monitoring_user_in_group_foo:
group.present:
- name: foo
- addusers:
- {{...}}
- require:
###### how to depend on monitoring__user?
在文档中require
看起来像- pkg: vim
。有没有办法只依赖于id?
答案 0 :(得分:1)
您可以指定id
或name
。所以你的要求看起来像这样:
- require:
- user: monitoring__user