ERB string interpolation and file_line matching
I'm trying to (ab)use a
file_line resource to ensure a block of text (my enterprise CA) always exists in my ca-certs bundle on CentOS hosts.
So far, what I've done is set a variable containing the newline-escaped version of my certificate's full info (what you'd get if you did
openssl x509 -in (filename) -noout -text). I newline escaped it by opening up IRB, opening double quotes, pasting the line in, and closing the quotes.
This looks like this in my manifest:
$cacert = "Certificate:\n Data:\n Version: 3 (0x2)\n Serial Number:\n 10:d8 ...