Skip to content

chef seems to be running under the wrong user #204

Open
@axos88

Description

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions