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

chef seems to be running under the wrong user #204

Open
axos88 opened this issue Feb 28, 2017 · 0 comments
Open

chef seems to be running under the wrong user #204

axos88 opened this issue Feb 28, 2017 · 0 comments

Comments

@axos88
Copy link

axos88 commented Feb 28, 2017

This resource:

	template jmx_password_path do
		source 'jmx.password.erb'
		variables({
			username: 'xxx',
			password: 'xxx'
		})

		inherits false
		owner 'SYSTEM'
		rights :full_control, 'SYSTEM'

		only_if { node[:xxx][:xxx][:jmx_enabled] }
	end

Is failing if the file is already created, due to no access. Probably chef is run under a different user than localsystem, which is used under all other circumstances. Is there a fix for this?

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

1 participant