On Tuesday, January 21, 2014 5:02:14 PM UTC-6, Gautam Chand Nutalapati 
wrote:
>
> I have a key and file A.
>
> usually to retrieve data from file, I guess we do something like  $var = 
> File("path/A") 
>


That would be spelled
$var = file("path/A")

 

> How do we retrieve the data from same file if file "A" is protected by a 
> key? (I have the Key)
>
>

You probably want a custom function to use in place of file().  You can 
prototype it with an inline template:

$var = inline_template("<%=
  # Ruby code here that evaluates to the wanted plaintext
%>")

Details will depend on the type of encryption, etc..

 

> (Related to SSL)
> I have a private key file that i want to password protect and use puppet 
> instead of user typing pass phrase every time.
> Encrypting whole contents of file is not possible, so planning to encrypt 
> pass phrase.
>
> Any suggestions?
>
>

I don't understand.  If the point is that the user doesn't have to type the 
pass phrase, then doesn't that necessarily involve the file NOT being 
password-protected?  How is Puppet supposed to change that?  Puppet is 
involved only in managing the file itself; it has no role to play when the 
file is *used*.


John

-- 
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/b913c7aa-8f7a-4a94-8dba-ee54743843de%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to