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 new file mode 100644 index 0000000..506a429 Binary files /dev/null and b/roles/certstore/files/jemalloc-3.6.0-1.el7.x86_64.rpm differ diff --git a/roles/certstore/files/redis-3.2.12-2.el7.x86_64.rpm b/roles/certstore/files/redis-3.2.12-2.el7.x86_64.rpm new file mode 100644 index 0000000..433217b Binary files /dev/null and b/roles/certstore/files/redis-3.2.12-2.el7.x86_64.rpm differ diff --git a/roles/certstore/tasks/main.yml b/roles/certstore/tasks/main.yml index e0fae00..bbc7878 100644 --- a/roles/certstore/tasks/main.yml +++ b/roles/certstore/tasks/main.yml @@ -1,8 +1,26 @@ --- +- 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 + file: path=/home/tsg state=directory tags: mkdir - + - name: install certstore unarchive: src: "{{ role_path }}/files/certstore-base-online-20190923.tar.gz" @@ -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 diff --git a/roles/certstore/templates/cert_store.ini.j2 b/roles/certstore/templates/cert_store.ini.j2 index f827120..94cd358 100644 --- a/roles/certstore/templates/cert_store.ini.j2 +++ b/roles/certstore/templates/cert_store.ini.j2 @@ -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 }} \ No newline at end of file