-
Notifications
You must be signed in to change notification settings - Fork 472
Portus configuration #710
Comments
It appears that portusctl setup has to be run. Direct edits to the config files are not taken into account. But since portusctl overwrites the config-local.yml file, some settings MUST be passed on the command line every single time. For example, if the ldap settings are not passed to portusctl setup on the command line, then config-local.yml will be written with ldap_enabled: false. ALL the ldap settings need to be passed on the command line, or they will get written with default values in config-local.yml. This is incredible inconvenient. I suggest the following handling of defaults: defaults are set in config.yml |
It gets worse! portusctl setup will override the storage settings in /etc/registry/config.yml. |
Configuration of Portus on the RPM has to be more clear, that's for sure :)
For now this is just too cumbersome.
As explained here, you should never do that. The
Bear in mind that this is indeed the current behavior. Take a look at this. So, in I will close this issue since all the valid concerns are already being tracked in one of these issues: #709, #711 and #712. Thanks for reporting all these issues. We are well aware that there are tons of things that can be improved in the RPM setup of Portus. |
"this i indeed the current behavior" : well, for example, the ldap settings are always overwritten in config-local.yml when running portusctl setup, unless the appropriate command-line argument is supplied. I should be able to set them once and for all in either config.yml or config-local.yml, and not have them change when I run portusctl setup again, unless I explicitly provide a command line argument. "you have to restart portus": How do you restart portus? is this the portusctl setup command? Something else (could not see it in the docs) ? If portusctl setup is meant to be run once only, that is rather dangerous. It would be better if the command was safe to run repeatedly. |
The
There's no command for that. That's a good point, we should create a |
Can I manually update the srv/portus/config/config.yml file? What about the config-local.yml file?
Changes made to these files directly do not seem to be taken int account (e.g. ldap_enabled: true).
Do I need to run portusctl setup again after making changes to the config files?
config.yml seemes ot remain unchanged by the portusctl setup command.
but the config-local.yml file is modified by the portusctl setup command.
The text was updated successfully, but these errors were encountered: