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

Install JNLP Slave to run as LocalSystem - library forces domain in XML #693

Closed
Brantone opened this issue Aug 1, 2018 · 3 comments
Closed

Comments

@Brantone
Copy link

Brantone commented Aug 1, 2018

Cookbook version

6.2.0

Chef-client version

13.10.0

Platform Details

Windows 2016 Server

Scenario:

Install Jenkins slave as LocalSystem account

Expected Result:

Install agent as JNLP and run as LocalSystem account

Actual Result:

2018-08-01 07:04:08,635 INFO  - Installing the service with id 'jenkins-slave'
LookupAccountName failed: 1332
Failed to set logon as a service right

If jenkins-slave.xml has <domain>.</domain> in it, then it fails, but that line is removed it works; however. due to https://github.com/chef-cookbooks/jenkins/blob/master/libraries/slave_windows.rb#L275 there's no way domain is empty, thus https://github.com/chef-cookbooks/jenkins/blob/master/templates/jenkins-slave.xml.erb#L65 is redundant.

Will look at submitting PR.

@Brantone
Copy link
Author

Brantone commented Aug 1, 2018

Actually, just realized, if pass:

user ' \\LocalSystem'

then it works (space before \\), so if anything README should be updated ... will leave this ticket on chance it helps someone else

@mbaitelman
Copy link
Contributor

This was fixed in PR703

@Brantone Brantone closed this as completed Jul 9, 2019
@Brantone
Copy link
Author

Brantone commented Jul 9, 2019

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants