【发布时间】:2014-10-01 14:59:14
【问题描述】:
我正在尝试了解 Salt 如何在 Pillar 的 top.sls 文件中对匹配的仆从进行排序和优先级排序。
我希望 Salt 优先考虑我在 Pillar 中的条目,但我得到看似随机的排序顺序(不是第一个,不是最后一个,不是字母顺序 afaik)。我看过order option,但不想使用它(如果它甚至在 Pillars 中可用?)
/srv/pillar/top.sls
base:
'*':
- users
'office-london-*':
- office.general.london
'office-ny-*':
- office.general.ny
'office-*-cust-*':
- office.cust
'office-*-cust-ntp*':
- office.cust-ntp
奴才
office-london-cust ->
office.general.londonoffice-london-cust-server1 ->
office.custoffice-london-cust-ntp-server1 ->
office.cust-ntpoffice-ny-cust ->
office.general.nyoffice-ny-cust-server1 ->
office.custoffice-ny-cust-ntp-server1 ->
office.cust-ntp
这里有一些 Github 问题的链接,我在没有弄清楚的情况下查看过:
https://github.com/saltstack/salt/pull/1287
https://github.com/saltstack/salt/issues/13657
【问题讨论】:
标签: salt-stack