Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Could not find node statement

asked 2018-10-15 03:35:26 -0600

Hi everyone, I try to run my first manifest but puppet give me Error 500! any idea?

run this : puppet agent -t --debug output

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Could not find node statement with name 'default' or 'srv.local.com, srv.local, srv' on node srv.local.local.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

manifest: vi /etc/puppetlabs/code/environments/production/manifests/site.pp

node 'agent.local.com' {
     package { 'httpd':
         ensure  => "installed",
     }
     service { 'httpd':
         ensure => running,
     enable => true
     }
 }

Thanks,

edit retag flag offensive close merge delete