Using ChefZero and pushing an attributes json file up to the host via another mechanism. I want to store the private key in the json file as a node attribute, then use a file template resource to push that out to a file on disk.
“ssl_private_key”: “-----BEGIN RSA PRIVATE KEY-----
FIRST LINE OF KEY
LAST LINE OF KEY
-----END RSA PRIVATE KEY-----”
This fails because I have lfs in the json file. I have tried this with \n for each line, and this gets further but produces a key which is unusable.
Any other suggestions on the best way to do this?