-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pull #19 causes Artifactory to restart every puppet run and restarting outside of puppet causes other issues #23
Comments
To get around this issue in our wrapper module have the following.
Will see if I can work up a pull request so it would be useful for others, however this is the minimum to achieve what we needed with clean puppet runs after initial setup. |
@mojibake-umd this should no longer be an issue as of Artifactory 6.6+ |
@cabrinha Thank you I read that page early. |
The creation of this file has no If puppet puts that file down, Artifactory should not be refreshed because of it. If the content changes, if the file exists or not, the Artifactory service should not be restarting. Can you share the output of a puppet run that restarts the service? |
Indeed there is no notify parameter assigned to the file but in the init.pp there is a notifying relation between the config and the service, so every change in the config results in a service restart. |
I created #26 which does not fix this issue, but is related in that it does not use the temp file is use_temp_db_secrets is set to false. |
I fixed this in our fork by creating an external fact once the file has been written and checking that fact before creating the file again. I haven't created a PR for this repository yet, because we have some other fixes in there and are currently waiting for puppetlabs/jdk to release a new version. But maybe you find the patch useful. |
The module was (more or less officially) moved to https://github.com/fervidus/artifactory. That version contains fixes for all known issues and is also available on the Puppet Forge: https://forge.puppet.com/fervid/artifactory |
Oh, that is certainly not clear. Could you please add that info to this repo and their forge entries or is the original maintainer not available anymore? |
Unfortunately, I can't, because I'm not the owner of this or the other repo. |
I will deprecate this tonight. Sorry for the confusion everyone. |
@bryanjbelanger ping. 😃 |
In 2.1.0 Puppet creates the etc/.secrets/.temp.db.properties file. Which triggers Artifactory service refresh, which Artifactory reads then deletes...next puppet run, etc/.secrets/.temp.db.properties files does not exist so puppet creates it and refreshes service causing restart.
Additionally if service is stopped and started by human etc/.secrets/.temp.db.properties does not exist, so etc/db.properties file is created if it does not exist and is configured to use Derby database.
Using 2.0.14 version of config.pp, can set db parameters and puppet will create etc/db.properties, then can unset parameters leaving db.properties unmanaged, and Artifactory can reset encrypted password as it pleases.
Artifactory Version: 6.10.3
The text was updated successfully, but these errors were encountered: