Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: Ruby  |  size: 0.30 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. class ssh::hostkeys {
  2.  
  3.   $ips=split($ipaddresses_all, ':')
  4.  
  5.   @@sshkey { "${fqdn}_dsa":
  6.     host_aliases => $ips,
  7.     type         => dsa,
  8.     key          => $sshdsakey,
  9.   }
  10.   @@sshkey { "${fqdn}_rsa":
  11.     host_aliases => $ips,
  12.     type         => rsa,
  13.     key          => $sshrsakey,
  14.   }
  15.  
  16. }