blob: df37a66c197a9be0c91abaf3b291252f4efbf8f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# deploys the
class sshd::sshkey {
@@sshkey{$::fqdn:
ensure => present,
tag => 'fqdn',
type => 'ssh-rsa',
key => $::sshrsakey,
}
# In case the node has uses a shared network address,
# we don't define a sshkey resource using an IP address
if $sshd::shared_ip == 'no' {
@@sshkey{$::sshd::sshkey_ipaddress:
ensure => present,
tag => 'ipaddress',
type => 'ssh-rsa',
key => $::sshrsakey,
}
}
}
|