Created
August 11, 2014 11:51
-
-
Save salgo/7a8fc328679e24010f30 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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