mardi 15 mars 2016

How to change value of variable within a file that is copied using cookbook_file resource?

I am using a cookbook_file resource to copy a file to the node. The file contains a variable as
HOST_ADDR='x.x.x.x'

Now, after copying the file to the node, I want to replace value of Host_ADDR from 'x.x.x.x' to #{node['ipaddress']}

Aucun commentaire:

Enregistrer un commentaire