How can I edit a chef attribute of an ec2 node using knife

Question:

I want to edit ec2 node’s node_data using a knife node command.
I can manually do it by using below command.
knife node edit NODE_NAME
It will generate a json which I need to edit.

I want to edit node_data in that json.
If I had to edit run_list the there is a command for that
knife node run_list add node 'role[ROLE_NAME]'
I need something similar to this command.

Answer:

I have added a knife plugin to add to node_data.

Leave a Reply