Commit 6415df69 by ChongmingDu

uodate doc,conf

parent 88c191bb
...@@ -47,4 +47,32 @@ ...@@ -47,4 +47,32 @@
### 使用 ### 使用
1. 检查各自模块的templates中的配置文件,更改为相应要求 1. 检查各自模块的templates中的配置文件,更改为相应要求
2. 在/Ant_Devops/standard.yml中roles字段中添加相应模块 2. 在/Ant_Devops/standard.yml中roles字段中添加相应模块
3. 运行 ansible-playbook -i host.yml -u root standard.yml 3. 运行 ansible-playbook -i host.yml -u root standard.yml
\ No newline at end of file
# 完整演示
## 1
![avatar](./images/1.png)
## 2
![avatar](./images/2.png)
## 3
![avatar](./images/3.png)
## 4
![avatar](./images/4.png)
## 5
![avatar](./images/5.png)
## 6
![avatar](./images/6.png)
## 7
![avatar](./images/7.png)
## 8
![avatar](./images/8.png)
## 9
![avatar](./images/9.png)
## 10
![avatar](./images/10.png)
## 11
![avatar](./images/12.png)
## 12
![avatar](./images/13.png)
## 13
![avatar](./images/11.png)
\ No newline at end of file
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
172.16.233.36 hostname=officialpc1 #hostname这里是想要配置的主机名 172.16.233.36 hostname=officialpc1 #hostname这里是想要配置的主机名
172.16.233.37 hostname=officialpc2 172.16.233.37 hostname=officialpc2
[test] [test]
172.16.233.38 hostname=officialpctest 47.101.162.14 hostname=officialpctest
\ No newline at end of file
...@@ -23,14 +23,14 @@ ...@@ -23,14 +23,14 @@
- name: "mkdir nginxdir" - name: "mkdir nginxdir"
file: file:
dest: /usr/local/nginx/conf/conf.d path: /usr/local/nginx/conf/conf.d
owner: nginx owner: nginx
group: nginx group: nginx
mode: 0755 mode: 0755
state: directory state: directory
- name: "install nginx" - name: "install nginx"
shell: cd /usr/local/tengine-2.2.2;./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module –with-stream --with-http_image_filter_module --with-http_gzip_static_module --with-http_stub_status_module --http-log-path=/data/logs/nginx/access.log --error-log-path=/data/logs/nginx/error.log &>/dev/null;make -j 4&&make install shell: cd /usr/local/tengine-2.2.2;./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_image_filter_module --with-http_gzip_static_module --with-http_stub_status_module &>/dev/null;make -j 4&&make install
- name: "link nginx bin" - name: "link nginx bin"
file: file:
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
- name: "mkdir nginx log dir" - name: "mkdir nginx log dir"
file: file:
dest: /data/nginx path: /data/nginx
owner: nginx owner: nginx
group: nginx group: nginx
mode: 0755 mode: 0755
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
- name: "mkdir nginx ssl dir" - name: "mkdir nginx ssl dir"
file: file:
dest: /data/nginx/ssl path: /data/nginx/ssl
owner: nginx owner: nginx
group: nginx group: nginx
mode: 0755 mode: 0755
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
- name: "static dir" - name: "static dir"
file: file:
dest: /data/www path: /data/www
mode: 0755 mode: 0755
state: directory state: directory
......
...@@ -4,13 +4,6 @@ ...@@ -4,13 +4,6 @@
name: https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm name: https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
state: present state: present
- name: "make zabbix log dir"
file:
dest: /data/var/{run,log}
owner: zabbix
group: zabbix
mode: 0755
state: directory
- name: "Install zabbix agent" - name: "Install zabbix agent"
yum: yum:
......
...@@ -6,7 +6,7 @@ LogFile=/var/log/zabbix/zabbix_agentd.log ...@@ -6,7 +6,7 @@ LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0 LogFileSize=0
##### Passive checks related ##### Passive checks related
# zabbix server ip地址
#Server=47.97.110.64 #Server=47.97.110.64
Server=172.16.162.209 Server=172.16.162.209
### Option: ServerActive ### Option: ServerActive
...@@ -15,4 +15,4 @@ ServerActive=127.0.0.1 ...@@ -15,4 +15,4 @@ ServerActive=127.0.0.1
Hostname=Zabbix server Hostname=Zabbix server
Include=/etc/zabbix/zabbix_agentd.d/*.conf Include=/etc/zabbix/zabbix_agentd.d/*.conf
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment