修正Certstore的部署脚本,增加Redis的安装并修正Maat参数渲染的问题。
This commit is contained in:
BIN
roles/certstore/files/jemalloc-3.6.0-1.el7.x86_64.rpm
Normal file
BIN
roles/certstore/files/jemalloc-3.6.0-1.el7.x86_64.rpm
Normal file
Binary file not shown.
BIN
roles/certstore/files/redis-3.2.12-2.el7.x86_64.rpm
Normal file
BIN
roles/certstore/files/redis-3.2.12-2.el7.x86_64.rpm
Normal file
Binary file not shown.
@@ -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
|
||||
@@ -19,4 +37,3 @@
|
||||
path: /etc/rc.d/rc.local
|
||||
block: |
|
||||
cd /home/tsg/certstore-base; ./r2_certstore
|
||||
|
||||
|
||||
@@ -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 }}
|
||||
Reference in New Issue
Block a user