/srv/mirrors/public-debian-security
/dev/hwrng
/lib/udev/rules.d/60-kpartx.rules
+ /etc/ssh/ssh_known_hosts
}.each do |path|
Facter.add("has" + path.gsub(/[\/.-]/,'_')) do
setcode do
content => "",
mode => '0444',
}
+
+ # this is only to avoid warnings, else puppet will complain that we
+ # have a symlink there, even if we're not replacing it anyhow.
+ if ! $has_etc_ssh_ssh_known_hosts {
+ file { '/etc/ssh/ssh_known_hosts':
+ ensure => 'present',
+ replace => 'no',
+ content => inline_template('<%= open("/etc/ssh/ssh_known_hosts").read() %>'),
+ notify => Exec['ud-replicate'],
+ }
+ }
+
+ exec { 'ud-replicate':
+ path => '/usr/bin:/usr/sbin:/bin:/sbin',
+ command => '/usr/bin/ud-replicate',
+ refreshonly => true,
+ require => Package['userdir-ldap']
+ }
}