- From: "O. T. Suarez" <
>
- To:
- Subject: [chef] Re: Re: yum install from URL
- Date: Sun, 6 Jan 2013 19:24:05 -0300
Hi Jordi,
>
package "rabbit" do
>
source
>
"http://www.rabbitmq.com/releases/rabbitmq-server/v3.0.1/rabbitmq-server-3.0.1-1.noarch.rpm"
>
action :install
>
provider Chef::Provider::Package::Rpm
>
end
You can also add some checking to Sean's code to prevent it from
running on another platform (debian based for instance):
case node[:platform]
when "redhat","centos","fedora","scientific"
package "rabbit" do
action :install
source
"
http://www.rabbitmq.com/releases/rabbitmq-server/v3.0.1/rabbitmq-server-3.0.1-1.noarch.rpm"
provider Chef::Provider::Package::Rpm
not_if "test -f /usr/sbin/rabbitmq-server"
end
end
regards,
Archive powered by MHonArc 2.6.16.