0
我有以下狀態:鹽狀態:我可以決定安裝軟件包的順序嗎?
# windows.sls
windows:
pkg.installed:
- pkgs:
- python2_x64
- vcforpython27
當執行salt -G 'os:Windows' state.highstate
,這些軟件包安裝在不同的順序比SLS文件中指定。將使用的訂單可以通過運行salt -G 'os:Windows' state.highstate test=true
進行預覽。
如何強制安裝軟件包的順序?
此外,[命令選項](https://docs.saltstack.com/en/latest/ref/states/ordering.html#the -order-option)可以使用。該頁面還介紹瞭如何跳過訂購併使用「需求」決定需要先安裝哪些軟件包等。 – fredrik