Chef infra change


Hi i am trying to create a recipe/cookbook to change specific line in muliple node.
I have a chef server and in workstation i have crested a cookbook with its recipe. Can i get exact logic how to write recipe to change specific line in all the node.

Thanks in advance


Really need some additional information. Is this specific line in a config file? If so which service/application? If its a configuration file using templates is a great way to create custom changes. If its a common application there are many public cookbooks that can assist with this as well. A great example is the ssh-hardening cookbook.
There are literally dozens of resources out there for managing various subsystems on servers.