Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

set user on exec resources in jenkins::plugin define #289

Merged
merged 1 commit into from
May 6, 2015

Conversation

jhoblitt
Copy link
Member

@jhoblitt jhoblitt commented May 6, 2015

As $plugin_dir has its ownership management, it should always be safe to run the exec resources in this define as the same user. This eliminates superfluous file permission change notifications from the log output. E.g.,

==> master: Notice: /Stage[main]/Main/Jenkins::Plugin[mailer]/File[/var/lib/jenkins/plugins/mailer.hpi]/owner: owner changed 'root' to 'jenkins'

As $plugin_dir has its ownership management, it should always be safe to run the exec resources in this define as the same user.  This eliminates superfluous file permission change notifications from the log output.  E.g.,

    ==> master: Notice: /Stage[main]/Main/Jenkins::Plugin[mailer]/File[/var/lib/jenkins/plugins/mailer.hpi]/owner: owner changed 'root' to 'jenkins'
@rtyler rtyler added this to the 1.5.0 - Jennings milestone May 6, 2015
rtyler pushed a commit that referenced this pull request May 6, 2015
set user on exec resources in jenkins::plugin define
@rtyler rtyler merged commit b8e2dbf into voxpupuli:master May 6, 2015
@jhoblitt jhoblitt deleted the feature/plugin-exec-as-user branch May 6, 2015 23:29
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants