feature:TSG-15664:OS适配授权管理

This commit is contained in:
fumingwei
2023-06-21 12:13:39 +08:00
committed by 付明卫
parent b4a200ec2d
commit 10b108afdb
4 changed files with 21 additions and 3 deletions

View File

@@ -43,4 +43,9 @@
copy:
src: "{{ role_path }}/files/hasp.sh"
dest: /etc/profile.d/
mode: 0755
mode: 0755
- name: "start hasp_monitor.service"
systemd:
name: hasp_monitor.service
enabled: yes

View File

@@ -559,4 +559,15 @@ enable_breakpad_upload=0
{{- if eq .Values.external_resources.cm.connectivity "local_cache" }}
sed -Ei "s|CM_POLICY_LOCAL_CACHE_IP_LOCATION|${CM_POLICY_LOCAL_CACHE_IP?}|g" /opt/tsg/shaping_engine/conf/shaping.conf
{{- end }}
{{- end -}}
{{- end -}}
{{- define "traffic-engine.volume.dev-shm" -}}
- name: dev-shm
hostPath:
path: /dev/shm
{{- end -}}
{{- define "traffic-engine.mount.dev-shm" -}}
- name: dev-shm
mountPath: /dev/shm
{{- end -}}

View File

@@ -94,6 +94,7 @@ spec:
{{ template "traffic-engine.firewall.mount.prestart" . }}
{{ template "traffic-engine.firewall.mount.hostpath" . }}
{{ template "traffic-engine.mount.dev-bus-usb" . }}
{{ template "traffic-engine.mount.dev-shm" . }}
- name: telegraf
image: "registry.gdnt-cloud.website/tsg-telegraf:{{ .Chart.AppVersion }}"
@@ -178,3 +179,4 @@ spec:
{{ template "traffic-engine.firewall.volume.prestart" . }}
{{ template "traffic-engine.volume.hostpath" . }}
{{ template "traffic-engine.volume.dev-bus-usb" . }}
{{ template "traffic-engine.volume.dev-shm" . }}

View File

@@ -52,7 +52,7 @@ builddir:
tar -zxvf $(PROJECTDIR)/ansible/roles/traffic-engine/files/helm-linux-amd64.tar.gz -C /tmp/helm
installer: builddir
sed -i '/sapp-pr:/d;/tfe-pr:/d;/mrzcpd:/d' $(PROJECTDIR)/ansible/install_config/group_vars/rpm_version.yml
sed -i '/sapp:/d;/tfe-pr:/d;/mrzcpd:/d' $(PROJECTDIR)/ansible/install_config/group_vars/rpm_version.yml
container-images-generate: builddir
podman load < $(PROJECTDIR)/package/rockylinux8.tar