Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can I use eyaml to encrypt yaml block?

Let say I am storing some block hiera data like a certificate like this in my hieradata:

my_cert: | -----BEGIN CERTIFICATE----- BlahBlahBlah -----END CERTIFICATE-----

and I want to use eyaml so I can store the encrypted version of the cert. I am not sure what my command line would be:

I tried:

# eyaml encrypt -s <<EOT
>-----BEGIN CERTIFICATE-----
>BlahBlahBlah
>-----END CERTIFICATE-----
EOT

But that does work so well:

Error: option '-s' needs a parameter.

How can I use eyaml to encrypt yaml block?

Let say I am storing some block hiera data like a certificate like this in my hieradata:

my_cert: |
 -----BEGIN CERTIFICATE-----
 BlahBlahBlah
 -----END CERTIFICATE-----

CERTIFICATE-----

and I want to use eyaml so I can store the encrypted version of the cert. I am not sure what my command line would be:

I tried:

# eyaml encrypt -s <<EOT
>-----BEGIN CERTIFICATE-----
>BlahBlahBlah
>-----END CERTIFICATE-----
EOT

But that does work so well:

Error: option '-s' needs a parameter.