title: Puppet generate SSH keys
body: <p>I am new to Puppet. </p>
  
  <p>What are the steps to generate a DSA key in Puppet and add the public key to authorized keys?</p>
  
  <p>Basically the equivalent of the below Linux statements</p>
  
  <pre><code>$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
  
  $ cat ~/.ssh/id_dsa.pub &gt;&gt; ~/.ssh/authorized_keys
  </code></pre>