[error] Traceback (most recent call last): 4: from ./start:50:in `<main>' 3: from /c/compass-ci/container/defconfig.rb:25:in `relevant_service_authentication' 2: from /usr/share/ruby/psych.rb:497:in `load_file' 1: from /usr/share/ruby/psych.rb:497:in `open' /usr/share/ruby/psych.rb:497:in `initialize': No such file or directory @ rb_sysopen - /etc/compass-ci/passwd.yaml (Errno::ENOENT)
Signed-off-by: Liu Yinsi liuyinsi@163.com --- sparrow/3-code/dev-env | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/sparrow/3-code/dev-env b/sparrow/3-code/dev-env index a478fffe..b68d9e67 100755 --- a/sparrow/3-code/dev-env +++ b/sparrow/3-code/dev-env @@ -189,6 +189,17 @@ auto-submit: my_name: auto-submit EOF
+[[ -f /etc/compass-ci/passwd.yaml ]] || { +passwd=$(< /dev/urandom tr -dc "a-zA-Z0-9-=+@#_:/[](){}$%&.^*!" | head -c 10;echo) + +cat > /etc/compass-ci/passwd.yaml <<EOF +ES_USER: root +ES_PASSWORD: $passwd +LOGGING_ES_USER: root +LOGGING_ES_PASSWORD: $passwd +EOF +} + source /etc/os-release
path=$(dirname ${BASH_SOURCE[0]})/os/${ID}