I have a puppet module where I download files and install them with yum. I can download fine, just can't install them.
exec{'download_lumberjack':
command => "wget http://repos/artifactory/com/elasticsearch/logstash-forwarder/0.4.0-centOS7/logstash-forwarder-0.4.0-centOS7-1.x86_64.rpm",
cwd => "/",
path => ["/usr/bin"],
logoutput => true,
}
exec{'install_lumberjack':
command => "yum install -y logstash-forwarder-0.4.0-centOS7-1.x86_64.rpm",
cwd => "/",
path => ["/usr/bin"],
logoutput => true,
}
Error: yum install -y logstash-forwarder-0.4.0-centOS7-1.x86_64.rpm returned 1 instead of one of [0]
Error: /Stage[main]/LSF::Install/Exec[install_Java]/returns: change from notrun to 0 failed: yum install -y logstash-forwarder-0.4.0-centOS7-1.x86_64.rpm returned 1 instead of one of [0]
Error: Could not find command 'yum'
What the heck?
↧