How to read entire files in Puppet verbatim (without parsing like template)?
I need to create a bunch of
ssh_authorized_keys resources. The resource expects its
key-attribute to be the public key itself -- there is no way to refer to a file containing the key.
Because the keys are very long and because I already have them in files, I'd rather Puppet read them from the files instead of me quoting them in the manifest.
I can imagine a few other use-cases too.
Is there already a function to read a specified file verbatim, without attempting to interpret them as
For public-keys I can, actually, get away with
template(), but that carries an overhead of a parsing-attempt. Also, in some other cases, depending on the file's contents, the parsing may, actually, "fail" or, worse, not fail, but quietly alter the contents...