I am setting my first steps into puppet. I am trying to setup ambari.
This is my puppet config:
exec { "ambari-repo":
command => "curl http://public-repo-1.hortonworks.com/ambari/suse11/1.x/updates/1.4.4.23/ambari.repo > /etc/yum.repos.d/ambari.repo",
path => ["/usr/bin", "/usr/sbin"]
}
package {"ambari-server":
ensure => installed,
require => Exec["ambari-repo"]
}
file { "hadoop-dir":
path => "/hadoop",
ensure => "directory"
}
exec { "ambari-server-setup":
command => "ambari-server setup -s",
path => ["/usr/bin", "/usr/sbin"],
cwd => "/hadoop",
user => "root",
require => [Package["ambari-server"], File["hadoop-dir"]]
}
But when my puppet script run, it fails:
Notice: Compiled catalog for localhost.be in environment production in 0.30 seconds
Notice: /Stage[main]/Main/File[hadoop-dir]/ensure: created
Notice: /Stage[main]/Main/Exec[ambari-repo]/returns: executed successfully
Notice: /Stage[main]/Main/Package[ambari-server]/ensure: created
Notice: Finished catalog run in 49.39 seconds
Stderr from the command:
Error: /usr/bin/env: bash: No such file or directory
Error: /Stage[main]/Main/Exec[ambari-server-setup]/returns: change from notrun to 0 failed: /usr/bin/env: bash: No such file or directory
Note that i uses puppet with vagrant.
Any idea what i am doing wrong?
Thanks