I'm fairly new to Chef and have been writing recipes for Kiosks that we use at work.
I've created a role for the Kiosk that contains a set of attributes, however one of these attributes is a unique ID that is different for each Kiosk node.
This ID is provided by our customer who uses the Kiosk, is abritrary, and can't be generated automatically.
What's best practice for setting this value? I'm using Chef Server and was thinking the best place to do it would be at Bootstrap but not entirely sure how.
node.set['attribute']['id'] = node['fqdn'].hash % 9999
(which give a number between 1 and 9999 derived from hostname) works or not