歡迎您光臨本站 註冊首頁

puppet配置報錯

←手機掃碼閱讀     火星人 @ 2014-03-03 , reply:0

puppet配置報錯

後台老報這錯誤
Jun 27 13:15:37 localhost puppet-agent: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known
Jun 27 13:15:37 localhost puppet-agent: Using cached catalog
Jun 27 13:15:37 localhost puppet-agent: (/Stage/Testserver::Sshd/File) 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: (/Stage/Testserver::Sshd/Exec) Dependency File has failures: true
Jun 27 13:15:37 localhost puppet-agent: (/Stage/Testserver::Sshd/Exec) Skipping because of failed dependencies
Jun 27 13:15:37 localhost puppet-agent: (/Stage/Testserver::Sshd/Service) Dependency File has failures: true
Jun 27 13:15:37 localhost puppet-agent: (/Stage/Testserver::Sshd/Service) Skipping because of failed dependencies
Jun 27 13:15:37 localhost puppet-agent: 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"],
        }
}




# 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
《解決方案》

回復 2# 613039587
你妹


   
《解決方案》

自己頂一下...
《解決方案》

有些業內人的問題了。
《解決方案》

沒有得到伺服器的ip

[火星人 ] puppet配置報錯已經有646次圍觀

http://coctec.com/docs/service/show-post-653.html