class ssh {
case $sshrsakey {
"": { # ignore empty keys
}
default: {
@@sshkey {"$hostname":
type => rsa,
key => $sshrsakey,
alias => $fqdn }
@@sshkey {"$ipaddress_eth0":
type => rsa,
key => $sshrsakey }
}
}
Sshkey | |>>
}
greatly simplified example, proper class file here. This example uses mysql to store ssh keys that are exported using the @@ operator. http://reductivelabs.com/trac/puppet/wiki/ExportedResources