Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@control01 salt]# salt --versions-report
- Salt: 2014.1.1
- Python: 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
- Jinja2: unknown
- M2Crypto: 0.20.2
- msgpack-python: 0.1.13
- msgpack-pure: Not Installed
- pycrypto: 2.0.1
- PyYAML: 3.10
- PyZMQ: 2.2.0.1
- ZMQ: 3.2.4
- [root@control01 salt]# salt -G 'node_type:users' test.ping
- ostrich.csi.com:
- True
- griffin.csi.com:
- True
- robin.csi.com:
- True
- albatross.csi.com:
- True
- [root@control01 salt]# cat top.sls
- base:
- '*':
- 'node_type:users':
- - match: grain
- - users
- [root@control01 salt]# cat top.sls
- base:
- '*':
- 'node_type:users':
- - match: grain
- - users
- [root@control01 salt]# cat users/init.sls
- iptables:
- pkg:
- - installed
- service:
- - running
- - watch:
- - file: /etc/sysconfig/iptables
- /etc/sysconfig/iptables:
- file:
- - managed
- - source: salt://files/iptables_users
- - user: root
- - group: root
- - mode: 644
- - require:
- - pkg: iptables
- [root@control01 salt]# salt -G 'node_type:users' state.highstate
- albatross.csi.com:
- ----------
- ID: states
- Function: no.None
- Result: False
- Comment: No Top file or external nodes data matches found
- Changes:
- Summary
- ------------
- Succeeded: 0
- Failed: 1
- ------------
- Total: 1
- griffin.csi.com:
- ----------
- ID: states
- Function: no.None
- Result: False
- Comment: No Top file or external nodes data matches found
- Changes:
- Summary
- ------------
- Succeeded: 0
- Failed: 1
- ------------
- Total: 1
- ostrich.csi.com:
- ----------
- ID: states
- Function: no.None
- Result: False
- Comment: No Top file or external nodes data matches found
- Changes:
- Summary
- ------------
- Succeeded: 0
- Failed: 1
- ------------
- Total: 1
- robin.csi.com:
- ----------
- ID: states
- Function: no.None
- Result: False
- Comment: No Top file or external nodes data matches found
- Changes:
- Summary
- ------------
- Succeeded: 0
- Failed: 1
- ------------
- Total: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement