I have PHP's composer installed globally, and I'm trying to get Puppet to automatically run the composer self-update command.
Here's my manifest:
exec { "composer self-update":
path => '/usr/local/bin/'
}
Running "/usr/local/bin/composer self-update" as root manually works, but when puppet runs it generates this error:
change from notrun to 0 failed: /usr/bin/env: php: No such file or directory
I'm at a loss as to why the manual behavior is different from the Puppet behavior.
Also, I have Puppet running as root.