Is there any way to apply any role’s attributes during a chef run? The
reason I need to do this is because I am adding a role to the run_list
during a chef run and I’d like that role’s attributes to take effect
during the current chef run. I know this is not idempotent and I
shouldn’t be doing things this way, but let’s not get into that
This is what I’m hoping I can do:
node[‘run_list’] << "role[roleA]"
role.apply(“roleA”) # now the attributes in roleA will be available
for the rest of the chef run.
Thanks in advance.