On Tuesday, March 8, 2016 at 1:16:13 AM UTC, Matt wrote:
>
> So I've done this simple with hiera email and using the contents of the 
> ssl keys and certs as strings for file resources to use with created 
> resources 
>
> Could you tell me in a bit details how did you do it. I tried but really 
actually working. Not sure if I'm doing something wrong.
So, in my .eyaml, I have something like this:


wpress::params::nx_dhparam: >
    ENC[PKCS7,MIIDHQYJKoZIhvcNAQcDoIIDD3434ufkfjr9r90gEhMIIBHQIBADAFMAACAQEw
    DQYJKoZIhvcNAQEBBQAEggEAVLx8H1hbRwKvFWn5x40ckC7f6II191LC0d82
    xbh4id3Jy/tV9s2abJxNl72BBj1mkVtNsBEigfgx79wfNtQ34mLRvA6wv9pG
    yYYwm89PMHf1WlWbMogIMgMXGQx0IDhOewupfNJe75avEe2aIjwzxowLSq1p
    x6migdVUCdi3ywlNdIAVPbe0N6fTG1OT4nQBW6PVJor6zA5Q3eFYCa+UmgYC
    81bGdpVXDw3lUFWm2hg5aY4aG90Wa2mBK72t+QyeT1nlgcjoQDs2scuzojIh
    n067O0oI6NlsVfaVQiwY1SmfIvKjldF4VX+q6I+lMkRQK9e8]


then in my nginx.pp:


$dhparam_pem = hiera('wpress::params::nx_dhparam')

file { '/etc/nginx/ssl/dhparam.pem':
    ensure  => present,
    mode    => '0440',
    owner   => 'root',
    group   => 'root',
    content => $dhparam_pem,
}


hoping to the see the file: /etc/nginx/ssl/dhparam.pem has been created 
with the decrypted $dhparam_pem content but I get exactly the same text as 
in the 
heria. What am I doing wrong?

-S

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/7d2b30f0-7fe7-458b-b624-662c6cd85c19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to