Reuse puppet-zuul known_hosts class
Instead of having the logic of adding a known_hosts file on the zuul_scheduler wrapper class, just reuse zuul::known_hosts Change-Id: Ib9da5da5434cf9fc47462ac49681223aec07baa5 Depends-On: I020b3379bf30861db93cc5f1b1d31a096335baba
This commit is contained in:
@@ -94,21 +94,8 @@ class openstackci::zuul_scheduler(
|
||||
}
|
||||
|
||||
if $known_hosts_content != '' {
|
||||
file { '/home/zuul/.ssh':
|
||||
ensure => directory,
|
||||
owner => 'zuul',
|
||||
group => 'zuul',
|
||||
mode => '0700',
|
||||
require => Class['::zuul'],
|
||||
}
|
||||
file { '/home/zuul/.ssh/known_hosts':
|
||||
ensure => present,
|
||||
owner => 'zuul',
|
||||
group => 'zuul',
|
||||
mode => '0600',
|
||||
content => $known_hosts_content,
|
||||
replace => true,
|
||||
require => File['/home/zuul/.ssh'],
|
||||
class { '::zuul::known_hosts':
|
||||
known_hosts_content => $known_hosts_content,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user