mirror of https://github.com/zulip/zulip.git
kandra: Skip hostnames which are undef.
If zulip.conf is not fully configured, do not error out if one of the $hostname values is undef.
This commit is contained in:
parent
3d63a87384
commit
fa6f4cc039
|
@ -63,8 +63,10 @@ define kandra::user_dotfiles (
|
|||
mode => '0644',
|
||||
require => File["${homedir}/.ssh"],
|
||||
}
|
||||
$known_hosts.each |String $hostname| {
|
||||
if $hostname == 'github.com' {
|
||||
$known_hosts.each |Optional[String] $hostname| {
|
||||
if $hostname == undef {
|
||||
# pass
|
||||
} elsif $hostname == 'github.com' {
|
||||
$github_keys = file('kandra/github.keys')
|
||||
exec { "${user} ssh known_hosts ${hostname}":
|
||||
command => "echo '${github_keys}' >> ${homedir}/.ssh/known_hosts",
|
||||
|
|
Loading…
Reference in New Issue