Skip to content

Commit

Permalink
fixed sshkey issue when $facts[fqdn] == $facts[hostname]
Browse files Browse the repository at this point in the history
  • Loading branch information
S. Mannem committed Feb 14, 2017
1 parent e9d81c7 commit f4e9b69
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions manifests/ssh.pp
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@
tag => $facts['pure_cloud_clusterdns'],
}

@@sshkey { "${facts['fqdn']}_${facts['hostname']}":
name => $facts['networking']['hostname'],
type => ecdsa-sha2-nistp256,
key => $::sshecdsakey,
tag => $facts['pure_cloud_clusterdns'],
if $facts['fqdn'] != $facts['hostname'] {
@@sshkey { "${facts['fqdn']}_${facts['hostname']}":
name => $facts['hostname'],
type => ecdsa-sha2-nistp256,
key => $::sshecdsakey,
tag => $facts['pure_cloud_clusterdns'],
}
}

Sshkey <<| tag == $facts['pure_cloud_clusterdns'] |>>
Expand Down

0 comments on commit f4e9b69

Please sign in to comment.