2016-09-21 51 views
0

首先事實多個主機的結果:SaltStack節點組與一個錯誤

  • 的Debian GNU/Linux的8.6(傑西)
  • 鹽主2016年3月3日(硼)
  • 鹽僕從2016.3.3(Boron)

我嘗試使用here所述的節點組。

nodegroups: 
    web: 'salt-master1,salt-master2' 

如果我跑......

salt -N web test.ping 

...它會導致:

No minions matched the target. No command was sent, no jid was assigned. 
ERROR: No return received 

改變了我的節點組到:

nodegroups: 
    web: 'salt-master1' 

瞧...

salt-minion1: 
True 

我還嘗試了其他符號來定義鏈接文檔中描述的節點組。

我如何讓它與多個主機一起工作?

回答

0

我意識到我的錯。

沒有意識到L @ notation是顯式的主機列表。

有趣的人解決方法:

nodegroups: 
    web: '[email protected],salt-master2' 

結果:

salt-minion1: 
True 
salt-minion2: 
True