hx0011yy 发表于 2018-8-1 07:51:35

【saltstack学习笔记之六】salt的分组

  分组的类型
  -G    Grains glob匹配    //比如:G@os:Ubuntu

  -E    PCRE Minion>  -P    Grains PCRE匹配    //比如:P@os:(RedHat|Fedora|CentOS)
  -L    minions列表    //比如:L@minion1.example.com,minion3.domain.com or bl*.domain.com
  -I    Pillar glob匹配    //比如:I@pdata:foobar
  -S    子网/IP地址匹配    //比如:S@192.168.1.0/24 or S@192.168.1.100
  -R    Range cluster匹配    //比如:R@%foo.bar
  -D    Minion Data匹配    //比如:D@key:value
  其中E和L是最常用的(注意or代表和的意思。。。。与常规语法不同-_-d)
页: [1]
查看完整版本: 【saltstack学习笔记之六】salt的分组