I seem to be missing something obvious with Chef. I want to set an attribute on a node (a file path) which will be accessible to my cookbook.This is because a certain file lives in different locations on different nodes.
I'm assuming this would be in a JSON/RB file or recipe, so I can treat this as code, check into version control, etc.
A solution like How can I edit a chef attribute of an ec2 node using knife - has it as Knife command, but as mentioned I'd rather have something like a recipe or file (seems more tangible :-))
A solution like How to set Node Attributes on a Chef Client? suggests a recipe, but then do I specify my node-specific receipe in my run list (something like
knife bootstrap serverX ...-r unstall_jboss::serverX_setup,install_jboss::small_nfr_server...
I'd rather not use environments because this info is specific to a node, not a to an environment.
Thanks - like I say, I feel I'm missing something obvious