同步Astana客户验证环境配置

This commit is contained in:
Lu Qiuwen
2019-09-03 21:04:43 +08:00
parent 52aef274f7
commit 983985e92a
28 changed files with 293 additions and 32 deletions

View File

@@ -8,10 +8,24 @@
yum:
name: "{{ packages }}"
state: present
allow_downgrade: yes
vars:
packages:
- /tmp/ansible_deploy/tfe-4.0.5.348afbc-1.el7.x86_64.rpm
- /tmp/ansible_deploy/tfe-kmod-6ed8c79-1dkms.noarch.rpm
- name: "hotfix tfe program"
synchronize:
src: "{{ role_path }}/files/tfe"
dest: /home/tsg/tfe/bin/tfe
#- name: "remove the old tfe-kmod"
# command: rpm -e tfe-kmod
#- name: "delete the tfe_kmod.ko"
# command: rm -f /lib/modules/5.1.8-1.el7.elrepo.x86_64/extra/tfe_kmod.ko
#- name: "reinstall the tfe-kmod"
# command: rpm -i /tmp/ansible_deploy/tfe-kmod-c498d30-1dkms.noarch.rpm --force
- name: "template tfe-env config"
template:
@@ -28,6 +42,11 @@
src: "{{ role_path }}/templates/pangu_pxy.conf.j2"
dest: /home/tsg/tfe/conf/pangu/pangu_pxy.conf
- name: "deploy qaznet cert"
copy:
src: "{{ role_path }}/files/qaznet_intermedia.pem"
dest: "/home/tsg/tfe/resource/tfe/qaznet_intermedia.pem"
- name: "start tfe-kmod"
modprobe:
name: tfe_kmod
@@ -48,6 +67,7 @@
- name: "bootup tfe"
blockinfile:
path: /etc/rc.d/rc.local
marker: "## {mark} bootstrap tfe"
block: |
systemctl start tfe-env
cd /home/tsg/tfe; ./r2_tfe