标签:clamav source 利用 编写 led package lam figure .gz
首先应该编写sls文件
1 clamav_source:
2 file.managed:
3 - name: /tmp/clamav-0.99.2.tar.gz
4 - unless: test -f /tmp/clamav-0.99.2.tar.gz //如果没有这个文件,才会执行
5 - source: salt://clamav/package/clamav-0.99.2.tar.gz
6 clamav_unzip:
7 cmd.run:
8 - cwd: /tmp
9 - name: tar -zxf clamav-0.99.2.tar.gz
10 - unless: test -f /tmp/clamav-0.99.2
11 - require:
12 - file: clamav_source
13 clamav_pkg:
14 pkg.installed:
15 - names:
16 - gcc //源码安装需要编译器
17 - make
18 clamav_install:
19 cmd.run:
20 - cwd: /tmp/clamav-0.99.2
21 - unless: test
22 - name: ./configure --prefix=/usr/local/clamav && make && make install
23 - require:
24 - cmd: clamav_unzip
25 - pkg: clamav_pkg
利用saltstack对minion端安装clamav杀毒软件
标签:clamav source 利用 编写 led package lam figure .gz
原文地址:http://www.cnblogs.com/hyc-blog/p/7976327.html