Skip to content

Instantly share code, notes, and snippets.

@salgo
Created August 11, 2014 11:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save salgo/7a8fc328679e24010f30 to your computer and use it in GitHub Desktop.
#
# Cookbook Name:: web-base
# Recipe:: yum-webtatic
#
# Copyright 2014, Hello Future Ltd
#
# All rights reserved - Do Not Redistribute
#
rpm_path = File.join(Chef::Config[:file_cache_path], 'webtatic_repo_latest.rpm')
remote_file rpm_path do
source "http://mirror.webtatic.com/yum/el6/latest.rpm"
action :create
end
rpm_package "webtatic_package" do
source rpm_path
action :install
end
resources("remote_file[#{rpm_path}]").run_action(:create)
resources("rpm_package[webtatic_package]").run_action(:install)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment