I did see bin/set_passwd.py can optionally use environment variable OPSCENTERD_PASSWD_FILE, but setting this variable for opscenter didn't override the setting in opscenterd.conf.
Can passwd_file in opscenterd.conf be overridden with a JVM arg or env variable?
(4 posts) (2 voices)-
Posted 2 months ago #
-
In opscenterd.conf, there is a section named "[authentication]" with an option named "passwd_file". You can change the value of this to tell opscenterd where to find the passwd file.
Posted 2 months ago # -
Right, I wasn't clear in my original post. Sorry. What I'd like to do is override the option set in opscenterd.conf with something like this:
[authentication]
passwd_file=${passwd_file}The value of ${passwd_file} could be an environment variable or a JVM arg.
Posted 2 months ago # -
No, opscenterd doesn't allow the location of the passwd file to be overridden or specified by an env variable.
The closest you could get to this would be to set
$OPSCENTERD_CONFIG_DIRand have different config files per location you want to support.Posted 2 months ago #
Reply
You must log in to post.
