修正Certstore的部署脚本,增加Redis的安装并修正Maat参数渲染的问题。

This commit is contained in:
Lu Qiuwen
2019-09-25 13:45:40 +08:00
committed by 陆秋文
parent e9e951f3d3
commit 4c1a4beb30
4 changed files with 24 additions and 8 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -1,4 +1,22 @@
---
- name: "copy redis and dependency to destination"
synchronize:
src: "{{ role_path }}/files/"
dest: "/tmp/ansible_deploy/"
- name: "install redis"
yum:
name:
- /tmp/ansible_deploy/jemalloc-3.6.0-1.el7.x86_64.rpm
- /tmp/ansible_deploy/redis-3.2.12-2.el7.x86_64.rpm
state: present
- name: "enable redis"
systemd:
name: redis
enabled: yes
state: started
- name: Ensures /home/tsg exists
file: path=/home/tsg state=directory
tags: mkdir
@@ -18,5 +36,4 @@
marker: "## {mark} bootstrap certstore"
path: /etc/rc.d/rc.local
block: |
cd /home/tsg/certstore-base; ./r2_certstore
cd /home/tsg/certstore-base; ./r2_certstore

View File

@@ -40,7 +40,6 @@ ip = 127.0.0.1
port = 6379
[MAAT_REDIS]
#Maat monitors the Redsi server IP address and port number
ip = 10.4.35.1
port = 6379
dbindex = 0
ip = {{ maat_redis_server.address }}
port = {{ maat_redis_server.port }}
dbindex = {{ maat_redis_server.db }}