# Chef infra change

**URL:** <https://discourse.chef.io/t/chef-infra-change/14475>\
**Category:** Chef Automate\
**Created:** [February 2, 2019, 2:21am UTC](https://discourse.chef.io/t/chef-infra-change/14475 "2019-02-02T02:21:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![salamon](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@salamon](https://discourse.chef.io/u/salamon)\
**Post date:** [February 2, 2019, 2:21am UTC](https://discourse.chef.io/t/chef-infra-change/14475/1 "2019-02-02T02:21:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bcorner\_fan](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/bcorner_fan/32/2237_2.png) [@bcorner\_fan](https://discourse.chef.io/u/bcorner_fan)\
**Post date:** [February 2, 2019, 10:53pm UTC](https://discourse.chef.io/t/chef-infra-change/14475/2 "2019-02-02T22:53:17Z")

</div>

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.
