Saltstack安装filebeat-lyysm
# salt '*02' state.sls filebeatTest-02:
----------
ID: filebeat_source
Function: file.managed
Name: /tmp/filebeat-1.2.2-x86_64.rpm
Result: True
Comment: File /tmp/filebeat-1.2.2-x86_64.rpm updated
Started: 19:21:43.161849
Duration: 888.519 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: filebeat_install
Function: cmd.run
Name: rpm -ivh filebeat-1.2.2-x86_64.rpm
Result: True
Comment: unless execution succeeded
Started: 19:21:44.050721
Duration: 26.608 ms
Changes:
----------
ID: filebeat_rm
Function: cmd.run
Name: rm -rf filebeat-1.2.2-x86_64.rpm
Result: True
Comment: Command "rm -rf filebeat-1.2.2-x86_64.rpm" run
Started: 19:21:44.077776
Duration: 54.082 ms
Changes:
----------
pid:
7076
retcode:
0
stderr:
stdout:
----------
ID: filebeat_conf
Function: file.managed
Name: /etc/filebeat/filebeat.yml
Result: True
Comment: File /etc/filebeat/filebeat.yml is in the correct state
Started: 19:21:44.132225
Duration: 39.827 ms
Changes:
----------
ID: filebeat_restart
Function: cmd.run
Name: /etc/init.d/filebeat restart
Result: True
Comment: Command "/etc/init.d/filebeat restart" run
Started: 19:21:44.172250
Duration: 188.96 ms
Changes:
----------
pid:
7077
retcode:
0
stderr:
stdout:
Stopping filebeat: ?
Starting filebeat: ?
Summary for Test-02
------------
Succeeded: 5 (changed=3)
Failed: 0
------------
Total states run: 5
页:
[1]