Skip to content

chef seems to be running under the wrong user #204

@axos88

Description

@axos88

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions