saltstack的探索-grains

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
saltstack的探索-grains
 
利用grains可以得到主机的信息
 
[root@server200-21 salt]# salt '*' grains.items
test230:
    ----------
    SSDs:
    biosreleasedate:
        08/14/2012
    biosversion:
        V1.9
    cpu_flags:
        - fpu
        - vme
        - de
        - pse
        - tsc
        - msr
        - pae
        - mce
        - cx8
        - apic
        - sep
        - mtrr
        - pge
        - mca
        - cmov
        - pat
        - pse36
        - clflush
        - mmx
        - fxsr
        - sse
        - sse2
        - ht
        - syscall
        - nx
        - mmxext
        - fxsr_opt
        - pdpe1gb
        - rdtscp
        - lm
        - constant_tsc
        - rep_good
        - nopl
        - nonstop_tsc
        - extd_apicid
        - aperfmperf
        - pni
        - pclmulqdq
        - monitor
        - ssse3
        - cx16
        - sse4_1
        - sse4_2
        - popcnt
        - aes
        - xsave
        - avx
        - lahf_lm
        - cmp_legacy
        - svm
        - extapic
        - cr8_legacy
        - abm
        - sse4a
        - misalignsse
        - 3dnowprefetch
        - osvw
        - ibs
        - xop
        - skinit
        - wdt
        - lwp
        - fma4
        - nodeid_msr
        - topoext
        - perfctr_core
        - arat
        - cpb
        - hw_pstate
        - npt
        - lbrv
        - svm_lock
        - nrip_save
        - tsc_scale
        - vmcb_clean
        - flushbyasid
        - decodeassists
        - pausefilter
        - pfthreshold
    cpu_model:
        AMD FX(tm)-8120 Eight-Core Processor
    cpuarch:
        x86_64
    domain:
        ec.office
    fqdn:
        test230.ec.office
    fqdn_ip4:
        - 127.0.0.1
    fqdn_ip6:
    gpus:
        |_
          ----------
          model:
              RV370 [Radeon X300]
          vendor:
              unknown
    host:
        test230
    hwaddr_interfaces:
        ----------
        eth0:
            d4:3d:7e:32:17:d1
        lo:
            00:00:00:00:00:00
    id:
        test230
    ip4_interfaces:
        ----------
        eth0:
            - 192.168.1.230
            - 192.168.1.249
        lo:
            - 127.0.0.1
            - 192.168.1.130
    ip6_interfaces:
        ----------
        eth0:
            - fe80::d63d:7eff:fe32:17d1
            - 192.168.1.249
        lo:
            - ::1
    ip_interfaces:
        ----------
        eth0:
            - 192.168.1.230
            - 192.168.1.249
        lo:
            - 127.0.0.1
            - 192.168.1.130
    ipv4:
        - 127.0.0.1
        - 192.168.1.130
        - 192.168.1.230
        - 192.168.1.249
    ipv6:
        - ::1
        - fe80::d63d:7eff:fe32:17d1
    kernel:
        Linux
    kernelrelease:
        3.8.13-26.2.2.el6uek.x86_64
    locale_info:
        ----------
        defaultencoding:
            UTF8
        defaultlanguage:
            en_US
    localhost:
        test230.ec.office
    machine_id:
        c9ec7e74ec20b51a158cd26500000015
    manufacturer:
        MSI
    master:
        10.0.200.21
    mem_total:
        7956
    nodename:
        test230.ec.office
    num_cpus:
        8
    num_gpus:
        1
    os:
        OEL
    os_family:
        RedHat
    osarch:
        x86_64
    oscodename:
         
    osfinger:
        Oracle Linux Server-6
    osfullname:
        Oracle Linux Server
    osmajorrelease:
        6
    osrelease:
        6.5
    osrelease_info:
        - 6
        - 5
    path:
        /sbin:/usr/sbin:/bin:/usr/bin
    productname:
        MS-7693
    ps:
        ps -efH
    pythonexecutable:
        /usr/bin/python
    pythonpath:
        /usr/bin
        /usr/lib64/python2.6/site-packages/thrift-0.9.0-py2.6-linux-x86_64.egg
        /usr/lib64/python26.zip
        /usr/lib64/python2.6
        /usr/lib64/python2.6/plat-linux2
        /usr/lib64/python2.6/lib-tk
        /usr/lib64/python2.6/lib-old
        /usr/lib64/python2.6/lib-dynload
        /usr/lib64/python2.6/site-packages
        /usr/lib64/python2.6/site-packages/gtk-2.0
        /usr/lib/python2.6/site-packages
        /usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info
    pythonversion:
        - 2
        - 6
        - 6
        - final
        - 0
    saltpath:
        /usr/lib/python2.6/site-packages/salt
    saltversion:
        2014.7.0
    saltversioninfo:
        - 2014
        - 7
        - 0
        - 0
    selinux:
        ----------
        enabled:
            False
        enforced:
            Disabled
    serialnumber:
        To be filled by O.E.M.
    server_id:
        549806356
    shell:
        /bin/sh
    virtual:
        physical
    zmqversion:
        3.2.4