Run newman run on ubuntu from puppet agent
Folks, I have following in my PE master in suite.pp file, final goal is to run newman, but I am just trying command 'ls' currently but it fails
exec { 'newman run':
# (namevar) The command to execute
command => 'ls',
path => '/home/user/Downloads/f5-postman-workflows-develop/framework',
}
when I run on puupet agent it gives me error
root@ubuntu-agent:~# sudo puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for ubuntu-desktop
Info: Applying configuration version '1486141942'
Error: Could not find command 'ls'
Error: /Stage[main]/Main/Node[ubuntu-agent]/Exec[newman run]/returns: change from notrun to 0 failed: Could not find command 'ls'
Notice: Applied catalog in 1.29 seconds
root@ubuntu-agent:~#
add a comment