Puppet error while ssh key setup

on stapp01 I got the following error. On remaining two server script runs fine.

[tony@stapp01 ~]$ sudo puppet agent -tv

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for tony:
Info: Using configured environment ‘production’
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Could not find node statement with name ‘default’ or ‘stapp01.stratos.xfusioncorp.com’ on node stapp01.stratos.xfusioncorp.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

hi @smohdiqbal, can you please share your puppet code ?

sorry i missed it, please find below the puppet code
class ssh_node1 {
ssh_authorized_key { ‘root@jump_host’:
user => ‘tony’,
ensure => ‘present’,
type => ‘ssh-rsa’,
key => ‘AAAAB3NzaC1yc2EAAAADAQABAAABAQCxa/j+ngNahIGurSAEBgDOxZnnjEb/aY6YBzw3y7L3pVN6CBschkB1Ny7DI0Xq7j6E7MNeqSBZ20gKYHnP80SjnUpCRLRql29l6yYYhGFiarGeXZb18fL7SD7hbjmlEuF6lnecSZW8xKzUOrNg5c26RLnYYzSOYEaWoZGlKVdjVhhlKXocUC923YmLPzQRdDRPa6uPrff+XrwtmPUy4rc+uCYAq2StHYXI7+3T0z9UCLvtW7KI+Hokzgxb/DjS4L/78HYTDz3KF59xSmAR85w/qoDQCSJzVXyKZCWYjgUUR9YJ/b+4dQq2pwdMxRQ4/FsD7UuhDCv1g28Uka0TqS/V’

}
}

class ssh_node2 {
ssh_authorized_key { ‘root@jump_host’:
user => ‘steve’,
ensure => ‘present’,
type => ‘ssh-rsa’,
key => ‘AAAAB3NzaC1yc2EAAAADAQABAAABAQCxa/j+ngNahIGurSAEBgDOxZnnjEb/aY6YBzw3y7L3pVN6CBschkB1Ny7DI0Xq7j6E7MNeqSBZ20gKYHnP80SjnUpCRLRql29l6yYYhGFiarGeXZb18fL7SD7hbjmlEuF6lnecSZW8xKzUOrNg5c26RLnYYzSOYEaWoZGlKVdjVhhlKXocUC923YmLPzQRdDRPa6uPrff+XrwtmPUy4rc+uCYAq2StHYXI7+3T0z9UCLvtW7KI+Hokzgxb/DjS4L/78HYTDz3KF59xSmAR85w/qoDQCSJzVXyKZCWYjgUUR9YJ/b+4dQq2pwdMxRQ4/FsD7UuhDCv1g28Uka0TqS/V’

}
}

class ssh_node3 {
ssh_authorized_key { ‘root@jump_host’:
user => ‘banner’,
ensure => ‘present’,
type => ‘ssh-rsa’,
key => ‘AAAAB3NzaC1yc2EAAAADAQABAAABAQCxa/j+ngNahIGurSAEBgDOxZnnjEb/aY6YBzw3y7L3pVN6CBschkB1Ny7DI0Xq7j6E7MNeqSBZ20gKYHnP80SjnUpCRLRql29l6yYYhGFiarGeXZb18fL7SD7hbjmlEuF6lnecSZW8xKzUOrNg5c26RLnYYzSOYEaWoZGlKVdjVhhlKXocUC923YmLPzQRdDRPa6uPrff+XrwtmPUy4rc+uCYAq2StHYXI7+3T0z9UCLvtW7KI+Hokzgxb/DjS4L/78HYTDz3KF59xSmAR85w/qoDQCSJzVXyKZCWYjgUUR9YJ/b+4dQq2pwdMxRQ4/FsD7UuhDCv1g28Uka0TqS/V’
}
}

node ‘stapp01.statos.xfusioncorp.com’ {
include ssh_node1
}
node ‘stapp02.stratos.xfusioncorp.com’ {
include ssh_node2
}
node ‘stapp03.stratos.xfusioncorp.com’ {
include ssh_node3
}

hi @smohdiqbal, seems like there is a typo

node ‘stapp01.statos.xfusioncorp.com’ {
include ssh_node1

it should be stapp01.stratos.xfusioncorp.com

Configure a password less SSH connection from puppet master i.e jump host to all App Servers. However make sure the key is added to each app’s sudo user (i.e tony for App Server 1 )

thanks,
now able to execute the script on all servers.

but how to verify the task.

i am not able to login to any server from jump server without password

please help me to close this task