Skip to content
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

Path to $libdir hardcoded in few manifests #249

Closed
RobertLask opened this issue Feb 13, 2015 · 2 comments · Fixed by #396
Closed

Path to $libdir hardcoded in few manifests #249

RobertLask opened this issue Feb 13, 2015 · 2 comments · Fixed by #396
Labels
enhancement New feature or request

Comments

@RobertLask
Copy link

We needed to deploy Jenkins into alternate location on the file system. To achieve this we had to set the custom $config_hash = { 'JENKINS_HOME' => { 'value' => "$jenkins::params::jenkins_home" },
and different value $jenkins::params::libdir.

However, following modules have a hard coded path to /var/lib/jenkins/.
/plugin.pp
/package.pp
/proxy.pp
/job/present.pp
/job/absent.pp

Suggesting a change to allow for use of $jenkins::params::libdir across all modules.

Also the dedicated $jenkins::params::jenkins_home which would not require $config_hash would be nice.

Robert

@costela
Copy link
Contributor

costela commented Mar 20, 2015

We'd also appreciate having this issue solved.
Note however that $libdir is actually "/usr/lib" or "/usr/share", depending on $::osfamily, and is where the actual jenkins.war is located (i.e.: unrelated to the JENKINS_HOME setting). "/var/lib" doesn't currently have a corresponding parameter at all and is actually hard-coded in the jenkins packages from pkg.jenkins-ci.org. The package creates the (empty) directory and includes the default/jenkins file pointing jenkins to it.

To be truer to the puppet-spirit, maybe all variables in the default/jenkins file should be explicitly managed by the module? This would mean the elegant solution of using create_resources() over $config_hash would need to be rethought, but it would free the admin of having to look at the file to see what arguments are supported.

@jhoblitt jhoblitt added the enhancement New feature or request label Oct 8, 2015
@jhoblitt
Copy link
Member

The localstatedir param introduced in #396, along with internal re-factoring should address this.

jhoblitt added a commit to jhoblitt/puppet-jenkins that referenced this issue Oct 12, 2015
* 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
jhoblitt added a commit to jhoblitt/puppet-jenkins that referenced this issue Oct 12, 2015
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants