增加集群服务器ha配置;更新pyinstaller打包后找不到依赖库的bug.
This commit is contained in:
12
roles/oam_cli/files/oam_cli.service
Normal file
12
roles/oam_cli/files/oam_cli.service
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=oam_cli restart
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
||||
ExecStart=/usr/bin/mount --bind /opt/tsg/etc /home/tsgroot/opt/tsg/etc
|
||||
ExecStart=/usr/bin/mount -o bind /proc /home/tsgroot/proc
|
||||
ExecStart=/usr/bin/mount -o remount,rw,bind /proc /home/tsgroot/proc
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -14,3 +14,14 @@
|
||||
src: "{{role_path}}/templates/application.properties.j2"
|
||||
dest: /home/tsgroot/opt/tsg/cli/application.properties
|
||||
tags: template
|
||||
|
||||
- name: "copy oam_cli.service to destination server"
|
||||
copy:
|
||||
src: "{{ role_path }}/files/oam_cli.service"
|
||||
dest: /usr/lib/systemd/system/oam_cli.service
|
||||
|
||||
- name: "restart oam_cli service"
|
||||
systemd:
|
||||
daemon_reload: yes
|
||||
name: oam_cli
|
||||
state: restarted
|
||||
@@ -9,7 +9,7 @@ tags.config=/opt/tsg/etc/tsg_tags.json
|
||||
cli.agent.port=50222
|
||||
|
||||
# oam.influx.url=http://192.168.161.134:8086
|
||||
oam.influx.url=http://{{ mcn0_ip }}:58086
|
||||
oam.influx.url=http://{{ oam.mcn0_ip }}:58086
|
||||
oam.influx.db={{ influxdb.dbname }}
|
||||
oam.influx.user={{ influxdb.username }}
|
||||
oam.influx.password={{ influxdb.passwd }}
|
||||
|
||||
Reference in New Issue
Block a user