Advertisement
Guest User

salty

a guest
Apr 10th, 2014
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.20 KB | None | 0 0
  1. [root@control01 salt]# salt --versions-report
  2.            Salt: 2014.1.1
  3.          Python: 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
  4.          Jinja2: unknown
  5.        M2Crypto: 0.20.2
  6.  msgpack-python: 0.1.13
  7.    msgpack-pure: Not Installed
  8.        pycrypto: 2.0.1
  9.          PyYAML: 3.10
  10.           PyZMQ: 2.2.0.1
  11.             ZMQ: 3.2.4
  12.  
  13. [root@control01 salt]# salt -G 'node_type:users' test.ping
  14. ostrich.csi.com:
  15.     True
  16. griffin.csi.com:
  17.     True
  18. robin.csi.com:
  19.     True
  20. albatross.csi.com:
  21.     True
  22. [root@control01 salt]# cat top.sls
  23. base:
  24.  '*':
  25.  'node_type:users':
  26.    - match: grain
  27.    - users
  28. [root@control01 salt]# cat top.sls
  29. base:
  30.  '*':
  31.  'node_type:users':
  32.    - match: grain
  33.    - users
  34. [root@control01 salt]# cat users/init.sls
  35. iptables:
  36.   pkg:
  37.     - installed
  38.   service:
  39.     - running
  40.     - watch:
  41.       - file: /etc/sysconfig/iptables
  42.  
  43. /etc/sysconfig/iptables:
  44.   file:
  45.     - managed
  46.     - source: salt://files/iptables_users
  47.     - user: root
  48.     - group: root
  49.     - mode: 644
  50.     - require:
  51.       - pkg: iptables
  52. [root@control01 salt]# salt -G 'node_type:users' state.highstate
  53. albatross.csi.com:                                              
  54. ----------                                                      
  55.           ID: states                                            
  56.     Function: no.None                                          
  57.       Result: False                                            
  58.      Comment: No Top file or external nodes data matches found  
  59.      Changes:                                                  
  60.  
  61. Summary                                                                                                                            
  62. ------------                                                                                                                        
  63. Succeeded: 0                                                                                                                        
  64. Failed:    1                                                                                                                        
  65. ------------                                                                                                                        
  66. Total:     1                                                                                                                        
  67. griffin.csi.com:                                                                                                                    
  68. ----------
  69.           ID: states
  70.     Function: no.None
  71.       Result: False
  72.      Comment: No Top file or external nodes data matches found
  73.      Changes:
  74.  
  75. Summary
  76. ------------
  77. Succeeded: 0
  78. Failed:    1
  79. ------------
  80. Total:     1
  81. ostrich.csi.com:
  82. ----------
  83.           ID: states
  84.     Function: no.None
  85.       Result: False
  86.      Comment: No Top file or external nodes data matches found
  87.      Changes:
  88.  
  89. Summary
  90. ------------
  91. Succeeded: 0
  92. Failed:    1
  93. ------------
  94. Total:     1
  95. robin.csi.com:
  96. ----------
  97.           ID: states
  98.     Function: no.None
  99.       Result: False
  100.      Comment: No Top file or external nodes data matches found
  101.      Changes:
  102.  
  103. Summary
  104. ------------
  105. Succeeded: 0
  106. Failed:    1
  107. ------------
  108. Total:     1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement