Saltstack之pillar组件
直接执行刚刚写好的apache目录下的sls将会自动安装httpd,由于centos6属于redhat家族的分支,aapahce的value是httpd。
# salt 'salt-minion01' state.sls apache
salt-minion01:
----------
ID: apache
Function: pkg.installed
Name: httpd
Result: True
Comment: The following packages were installed/updated: httpd
Started: 15:22:35.860220
Duration: 25318.05 ms
Changes:
----------
apr:
----------
new:
1.3.9-5.el6_2
old:
apr-util:
----------
new:
1.3.9-3.el6_0.1
old:
apr-util-ldap:
----------
new:
1.3.9-3.el6_0.1
old:
httpd:
----------
new:
2.2.15-55.el6.centos.2
old:
httpd-tools:
----------
new:
2.2.15-55.el6.centos.2
old:
mailcap:
----------
new:
2.1.31-2.el6
old:
Summary for salt-minion01
------------
Succeeded: 1 (changed=1)
Failed: 0
------------
Total states run: 1
Total run time:25.318 s
页:
[1]