# Load the defaults, used by config:migrate and fallback loading
# legacy application.yml
-Open3.popen2("arvados-server", "config-dump", "-config=-") do |stdin, stdout, status_thread|
+Open3.popen2("arvados-server", "config-dump", "-config=-", "-skip-legacy") do |stdin, stdout, status_thread|
stdin.write("Clusters: {xxxxx: {}}")
stdin.close
confs = YAML.load(stdout, deserialize_symbols: false)
end
# Load the global config file
-Open3.popen2("arvados-server", "config-dump") do |stdin, stdout, status_thread|
+Open3.popen2("arvados-server", "config-dump", "-skip-legacy") do |stdin, stdout, status_thread|
confs = YAML.load(stdout, deserialize_symbols: false)
if confs && !confs.empty?
# config-dump merges defaults with user configuration, so every
ConfigLoader.copy_into_config $remaining_config, config
secrets.secret_key_base = $arvados_config["Workbench"]["SecretKeyBase"]
ConfigValidators.validate_wb2_url_config()
+ ConfigValidators.validate_download_config()
+
end