Skip to content

chef_user and chef_org load_current_value into node.run_state is not working #236

@nicutor

Description

@nicutor

Cookbook version

2.3.2

Chef-client version

14.6.47

Platform Details

CentOS Linux release 7.4.1708 (Core)

Hi,

I am dealing with some issues when I am using chef_user resource:

  * chef_user[test] action create
    * directory[/etc/opscode/users] action create (up to date)
    * execute[create-user-test] action run (skipped due to not_if)
    * ruby_block[append-user-to-users] action run
      - execute the ruby block append-user-to-users
    * execute[grant-server-admin-test] action run
      - execute chef-server-ctl grant-server-admin-permissions test

ruby_block[append-user-to-users] and execute[grant-server-admin-test] is executed all the time.

Also on chef_org resource:

  * chef_org[test] action create
    * directory[/etc/opscode/orgs] action create (up to date)
    * execute[create-org-test] action run (skipped due to not_if)
    * execute[add-user-test-org-test] action run (skipped due to not_if)
    * execute[add-admin-test-org-test] action run (skipped due to not_if)
     (up to date)

execute[add-user-test-org-test] and execute[add-admin-test-org-test] are always skipped.

From what I can see, the node.run_state is never populated by the load_current_value from these resources.
puts node.run_state shows always an empty hash {}

Can you please check and fix this?

Thank you!

Metadata

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