summaryrefslogtreecommitdiff
path: root/roles/certstore
diff options
context:
space:
mode:
authorzhangzhihan <[email protected]>2020-04-26 02:06:47 +0800
committerzhangzhihan <[email protected]>2020-04-26 02:06:47 +0800
commit633624c5a5b33fb4ab02944315bcc50f14afca55 (patch)
tree4082a6e6f64d31cacbe80a72411acd58fcb6abf5 /roles/certstore
parent9cad585759660080e0280c543c4abb65377e76de (diff)
功能端部署剧本升级,适配20.04版本
Diffstat (limited to 'roles/certstore')
-rw-r--r--roles/certstore/files/certstore-base-online-20200119.tar.gzbin2959929 -> 0 bytes
-rw-r--r--roles/certstore/files/jemalloc-3.6.0-1.el7.x86_64.rpmbin107040 -> 0 bytes
-rw-r--r--roles/certstore/tasks/main.yml22
-rw-r--r--roles/certstore/templates/cert_store.ini.j24
4 files changed, 13 insertions, 13 deletions
diff --git a/roles/certstore/files/certstore-base-online-20200119.tar.gz b/roles/certstore/files/certstore-base-online-20200119.tar.gz
deleted file mode 100644
index ec52dc1..0000000
--- a/roles/certstore/files/certstore-base-online-20200119.tar.gz
+++ /dev/null
Binary files differ
diff --git a/roles/certstore/files/jemalloc-3.6.0-1.el7.x86_64.rpm b/roles/certstore/files/jemalloc-3.6.0-1.el7.x86_64.rpm
deleted file mode 100644
index 506a429..0000000
--- a/roles/certstore/files/jemalloc-3.6.0-1.el7.x86_64.rpm
+++ /dev/null
Binary files differ
diff --git a/roles/certstore/tasks/main.yml b/roles/certstore/tasks/main.yml
index c6425cf..f18b623 100644
--- a/roles/certstore/tasks/main.yml
+++ b/roles/certstore/tasks/main.yml
@@ -1,5 +1,4 @@
----
-- name: "copy redis and dependency to destination"
+- name: "copy certstore rpm to destination"
synchronize:
src: "{{ role_path }}/files/"
dest: "/tmp/ansible_deploy/"
@@ -9,18 +8,19 @@
tags: mkdir
- name: install certstore
- unarchive:
- src: "{{ role_path }}/files/certstore-base-online-20200119.tar.gz"
- dest: /home/tsg
+ yum:
+ name:
+ - /tmp/ansible_deploy/certstore-v20.04.3989072-1.el7.x86_64.rpm
+ state: present
- name: template certstore configure file
template:
src: "{{ role_path }}/templates/cert_store.ini.j2"
dest: /home/tsg/certstore-base/conf/cert_store.ini
-- name: bootup certstore
- blockinfile:
- marker: "## {mark} bootstrap certstore"
- path: /etc/rc.d/rc.local
- block: |
- cd /home/tsg/certstore-base; ./r2_certstore
+- name: "start certstore"
+ systemd:
+ name: certstore.service
+ state: started
+ enabled: yes
+ daemon_reload: yes
diff --git a/roles/certstore/templates/cert_store.ini.j2 b/roles/certstore/templates/cert_store.ini.j2
index 94cd358..0a30c8c 100644
--- a/roles/certstore/templates/cert_store.ini.j2
+++ b/roles/certstore/templates/cert_store.ini.j2
@@ -2,7 +2,7 @@
#1:print on screen, 0:don't
DEBUG_SWITCH = 1
#10:DEBUG, 20:INFO, 30:FATAL
-RUN_LOG_LEVEL = 30
+RUN_LOG_LEVEL = 10
RUN_LOG_PATH = ./logs
[CONFIG]
#Number of running threads
@@ -42,4 +42,4 @@ port = 6379
#Maat monitors the Redsi server IP address and port number
ip = {{ maat_redis_server.address }}
port = {{ maat_redis_server.port }}
-dbindex = {{ maat_redis_server.db }} \ No newline at end of file
+dbindex = {{ maat_redis_server.db }}