pillar的功能类似与grains,默认路径是在/srv/pillar,编写top.sls packages.sls services.sls

top.sls

packages.sls

services.sls

然后执行salt '*' pillar.item zabbix

有时候数据出不来,可以执行salt '*' saltutil.refresh_pillar 来刷新数据

salt '*' pillar.get zabbix:name

pillar的功能类似与grains,默认路径是在/srv/pillar,编写top.sls packages.sls services.sls
top.sls
packages.sls
services.sls
然后执行salt '*' pillar.item zabbix
有时候数据出不来,可以执行salt '*' saltutil.refresh_pillar 来刷新数据
salt '*' pillar.get zabbix:name
本文标题:saltstack pillar设置
本文链接:https://www.haomeiwen.com/subject/xzqgvftx.html
网友评论