-
Notifications
You must be signed in to change notification settings - Fork 567
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
Plugins are installed each time and restarting service #219
Comments
@iax7 do you have an example of the logs from the Puppet run? I'm wondering what it thinks has changed every single Puppet run |
Here is the complete log: http://pastebin.com/24zxw7tp The interesting part is that owner changed 'root' to 'jenkins':
|
I am having the same issue. Here is my log:
with debug enabled: http://pastebin.com/yvLigvrb |
I have researched this a little further, the problem is that the facter ::jenkins_plugins is returning an empty string. In a quick view I didn't find the root issue in that facter. |
This happens if the plugin directory is anything other than "~jenkins/plugins" as this is where lib/puppet/jenkins.rb expects it to be. A quick worked around is symlinking "~jenkins/plugins" to the actual location. |
Note there is a request here that captures the root cause of this (that this module always assumes jenkins is intalled in ~jenkins). |
* add `manager_user`, `user`, `manage_group`, `group` params to `jenkins` class. * improve consistency of `file` resouce group ownership throughout the module * add 'localstatedir' param to `jenkins` class and consistently use it to set the 'data' base dir throughout the module * Deprecate/noop `username`, `group`, `create_user` params to `jenkins::plugin` define; replaced by `user`,`group`,etc. params to `jenkins` class * Deprecate/noop `plugin_dir` param to `jenkins::plugin`; replaced by `localstatedir` param to `jenkins` class closes voxpupuli#356 -- alternative approach resolves voxpupuli#362 resolves voxpupuli#365 resolves voxpupuli#219
* add `manager_user`, `user`, `manage_group`, `group` params to `jenkins` class. * improve consistency of `file` resouce group ownership throughout the module * add 'localstatedir' param to `jenkins` class and consistently use it to set the 'data' base dir throughout the module * Deprecate/noop `username`, `group`, `create_user` params to `jenkins::plugin` define; replaced by `user`,`group`,etc. params to `jenkins` class * Deprecate/noop `plugin_dir` param to `jenkins::plugin`; replaced by `localstatedir` param to `jenkins` class closes voxpupuli#356 -- alternative approach resolves voxpupuli#362 resolves voxpupuli#365 resolves voxpupuli#219 resolves voxpupuli#249
* add `manager_user`, `user`, `manage_group`, `group` params to `jenkins` class. * improve consistency of `file` resouce group ownership throughout the module * add 'localstatedir' param to `jenkins` class and consistently use it to set the 'data' base dir throughout the module * Deprecate/noop `username`, `group`, `create_user` params to `jenkins::plugin` define; replaced by `user`,`group`,etc. params to `jenkins` class * Deprecate/noop `plugin_dir` param to `jenkins::plugin`; replaced by `localstatedir` param to `jenkins` class closes voxpupuli#356 -- alternative approach resolves voxpupuli#362 resolves voxpupuli#365 resolves voxpupuli#219 resolves voxpupuli#249 resolves voxpupuli#250
Hi there! OS: CentOS 6.8 x86_64 When I run puppet for the first time, Jenkins is installed but only the credentials.hpi file (and corresponding .pinned file) is placed in the plugins directory. Plugin file is not uncompressed and due to this, "puppet-jenkins" will always try to install the plugins on each run, because it searches for directories inside the plugins directory (there is none, because the HPI file is not expanded). The code that searches for plugin directories is at lib/facter/jenkins.rb (method "available"). extract => true, After running puppet with these changes applied, the plugins directory include several other plugins other than "credentials" and Jenkins no longer restarts. |
required for facter to actually know what plugins are installed. See voxpupuli#219
Every time puppet runs, the plugin installation is run even when it already exists, causing a service restart each time...
The text was updated successfully, but these errors were encountered: