- 论坛徽章:
- 0
|
后台老报这错误
Jun 27 13:15:37 localhost puppet-agent[30239]: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known
Jun 27 13:15:37 localhost puppet-agent[30239]: Using cached catalog
Jun 27 13:15:37 localhost puppet-agent[30239]: (/Stage[main]/Testserver::Sshd/File[/etc/ssh/sshd_config]) Could not evaluate: getaddrinfo: Name or service not known Could not retrieve file metadata for puppet:///files/config/8sshd_config: getaddrinfo: Name or service not known at /etc/puppet/manifests/classes/develop/testserver_sshd.pp:13
Jun 27 13:15:37 localhost puppet-agent[30239]: (/Stage[main]/Testserver::Sshd/Exec[reload ssh]) Dependency File[/etc/ssh/sshd_config] has failures: true
Jun 27 13:15:37 localhost puppet-agent[30239]: (/Stage[main]/Testserver::Sshd/Exec[reload ssh]) Skipping because of failed dependencies
Jun 27 13:15:37 localhost puppet-agent[30239]: (/Stage[main]/Testserver::Sshd/Service[sshd]) Dependency File[/etc/ssh/sshd_config] has failures: true
Jun 27 13:15:37 localhost puppet-agent[30239]: (/Stage[main]/Testserver::Sshd/Service[sshd]) Skipping because of failed dependencies
Jun 27 13:15:37 localhost puppet-agent[30239]: Finished catalog run in 0.07 seconds
ssh文件也同步成功了,咋老报这错,啥意思呢
这是服务器端配置:
class testserver::sshd {
exec { "reload ssh":
command => "/etc/init.d/sshd reload",
refreshonly => true,
}
file { "/etc/ssh/sshd_config":
notify => Exec["reload ssh"],
ensure => present,
owner => "root",
group => "root",
mode => "0600",
source => "puppet:///files/config/8sshd_config",
}
service { "sshd":
ensure => "running",
enable => true,
subscribe => File["/etc/ssh/sshd_config"],
}
}
[root@testServer ~]# puppetd --test output:-
err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
|
|