puppetmasterd: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/sbin/puppetmasterd - from package: puppet-server

You may install the required package with command yum install {package}
Error in other languages:
puppetmasterd: bevel nie gevind nie
puppetmasterd: comandă negăsită
puppetmasterd: comando não encontrado
puppetmasterd: commande introuvable
puppetmasterd: command not found
puppetmasterd: käsku ei ole
puppetmasterd: không tìm thấy lệnh
puppetmasterd: komanda nerasta
puppetmasterd: Kommando nicht gefunden.
puppetmasterd: kommandot finns inte
puppetmasterd: komut yok
puppetmasterd: nie znaleziono polecenia
puppetmasterd: níor aimsíodh an t-ordú
puppetmasterd: no se encontró la orden
puppetmasterd: no s'ha trobat l'ordre
puppetmasterd: opdracht niet gevonden
puppetmasterd: parancs nem található
puppetmasterd: perintah tidak ditemukan
puppetmasterd: príkaz nenájdený
puppetmasterd: příkaz nenalezen
puppetmasterd: команда не найдена
puppetmasterd: командата не е открита
puppetmasterd: 命令找不到
puppetmasterd: コマンドが見つかりません