我想了解鹽如何命令和優先匹配支柱top.sls
文件中匹配的爪牙。鹽堆top.sls支柱順序
我希望Salt優先考慮我在柱中的條目,但我得到看似隨機的排序順序(不是第一個,也不是最後一個,不是按字母順序排列的afaik)。我有看order option但寧可不使用它(如果它甚至可以在支柱?)
/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.general.london
辦公室 - 倫敦 - 卡斯特 - 服務器1 - >
office.cust
辦公室 - 倫敦 - 卡斯特-NTP-server1的 - >
office.cust-ntp
辦公室-NY-卡斯特 - >
office.general.ny
辦公NY-卡斯特 - 服務器1 - >
office.cust
辦公室-NY-卡斯特-NTP-server1的 - >
office.cust-ntp
這裏有一些鏈接到Github的問題,我在當時一看沒有搞清楚了這一點:
https://github.com/saltstack/salt/pull/1287
https://github.com/saltstack/salt/issues/13657
https://github.com/saltstack/salt/issues/1432
https://github.com/saltstack/salt/issues/14723