diff options
| author | zhangzhihan <[email protected]> | 2020-05-13 11:45:57 +0800 |
|---|---|---|
| committer | zhangzhihan <[email protected]> | 2020-05-13 11:45:57 +0800 |
| commit | cf3847561290b69ccb3fed53a130bee15b7b6d1a (patch) | |
| tree | accb73efa2d232c365bb789ee72309d2cafc1973 /roles | |
| parent | 5d1154a5b76efe77a1b7ed29ad92657f5f571e68 (diff) | |
update
Diffstat (limited to 'roles')
| -rwxr-xr-x | roles/oam_cli/templates/application.properties.j2 | 2 | ||||
| -rw-r--r-- | roles/oam_core/templates/application-centos2.properties.j2 | 6 | ||||
| -rw-r--r-- | roles/oam_snmp/tasks/main.yml | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/roles/oam_cli/templates/application.properties.j2 b/roles/oam_cli/templates/application.properties.j2 index 324c55e..36baaf7 100755 --- a/roles/oam_cli/templates/application.properties.j2 +++ b/roles/oam_cli/templates/application.properties.j2 @@ -17,7 +17,7 @@ oam.influx.password={{ influxdb.passwd }} oam.cli.user.admin=tsgadmin oam.cli.user.user=tsguser -cli.rest.root=http://{{ bifang_api_ip }}:8080/v1 +cli.rest.root=http://{{ bifang_api_ip }}:{{ bifang_api_port }}/v1 cli.rest.login=${cli.rest.root}/user/login cli.rest.policy=${cli.rest.root}/policy/compile cli.rest.policy.object=${cli.rest.root}/policy/object diff --git a/roles/oam_core/templates/application-centos2.properties.j2 b/roles/oam_core/templates/application-centos2.properties.j2 index 2bdc958..417af84 100644 --- a/roles/oam_core/templates/application-centos2.properties.j2 +++ b/roles/oam_core/templates/application-centos2.properties.j2 @@ -37,11 +37,11 @@ oam.influx.port=58086 oam.writer.influxcluster.db={{ influxdb.dbname }}
# datasource - local
-datasource.first.password={{ influxdb.passwd }}
+datasource.first.password={{ mariadb.password }}
# datasource - cluster
-datasource.second.username=root
-datasource.second.password=111111
+datasource.second.username={{ mariadb.username }}
+datasource.second.password={{ mariadb.password }}
oam.writer.scheduler.interval=60000
diff --git a/roles/oam_snmp/tasks/main.yml b/roles/oam_snmp/tasks/main.yml index e782228..e868834 100644 --- a/roles/oam_snmp/tasks/main.yml +++ b/roles/oam_snmp/tasks/main.yml @@ -29,8 +29,10 @@ copy: src: "{{role_path}}/files/snmpd.conf" dest: /etc/snmp/ + mode: 0755 - name: "copy snmptrapd conf" copy: src: "{{role_path}}/files/snmptrapd.conf" dest: /etc/snmp/ + mode: 0755 |
