This is really how things should work. Inside the cookbook_name recipe, you can access the hash :cookbook_name with two elements :a and :b .
Have you installed the startup list and environment in node to include the role and environment you specified? Running a knife node show should show this.
source share