Browse Source

Changes to use home directory according to component user

Change-Id: I1188a561042174f688a7836afa2e25ed0184024e
hosingh000 3 months ago
parent
commit
999d4bd0e7
2 changed files with 6 additions and 2 deletions
  1. 6
    0
      ranger/templates/configmap-etc.yaml
  2. 0
    2
      ranger/values.yaml

+ 6
- 0
ranger/templates/configmap-etc.yaml View File

@@ -26,6 +26,12 @@ limitations under the License.
26 26
 {{- if empty .Values.conf.ranger.keystone_authtoken.password -}}
27 27
 {{- $_ := set .Values.conf.ranger.keystone_authtoken "password" .Values.endpoints.identity.auth.ranger.password -}}
28 28
 {{- end -}}
29
+{{- if empty .Values.conf.ranger.DEFAULT.ranger_base -}}
30
+{{- $_ := set .Values.conf.ranger.DEFAULT "ranger_base" (print .Values.conf.ssh.user_home "/ranger" ) -}}
31
+{{- end -}}
32
+{{- if empty .Values.conf.ranger.rds.repo_local_location -}}
33
+{{- $_ := set .Values.conf.ranger.rds "repo_local_location" (print .Values.conf.ssh.user_home "/git_repo" ) -}}
34
+{{- end -}}
29 35
 {{- if empty .Values.conf.ranger.keystone_authtoken.project_name -}}
30 36
 {{- $_ := set .Values.conf.ranger.keystone_authtoken "project_name" .Values.endpoints.identity.auth.ranger.project_name -}}
31 37
 {{- end -}}

+ 0
- 2
ranger/values.yaml View File

@@ -467,7 +467,6 @@ conf:
467 467
       log_level: INFO
468 468
       orm_host: 0.0.0.0
469 469
       pecan_debug: True
470
-      ranger_base: '/home/ranger/ranger'
471 470
       ssl_verify: False
472 471
       use_handlers: console
473 472
       ranger_agent_https_enable: False
@@ -490,7 +489,6 @@ conf:
490 489
       auth_enabled: False
491 490
     rds:
492 491
       log: null
493
-      repo_local_location: /home/ranger/git_repo
494 492
       repo_remote_location: git@127.0.0.1:/home/repo/ORM.git
495 493
       repo_user: orm
496 494
       repo_email: orm@test.com

Loading…
Cancel
Save