FWIW, I took this and simply dropped it into the libraries folder in a chef cookbook.
Then easily used it to take the portertech redis cookbook and monkeypatched the redis.conf template it in for 2.6.4
% cat sk_chef_rewind/libraries/rewind.rb
[...chef_rewind library...]
% cat sk_redis/metadata.rb
depends "sk_chef_rewind"
% cat sk_redis/recipes/default.rb
rewind "template[#{node['redis']['conf_dir']}/redis.conf]" do
cookbook_name "sk_redis"
end
% cat sk_redis/templates/default/redis.conf.erb
[...redis.conf template hacked up to remove vm-* options and rename some others...]
% cat roles/redis.rb
name "redis"
description "role for deploying redis"
override_attributes({
"redis" => {
"install_type" => "source"
}
})
run_list(
"recipe[portertech_redis::server]",
"recipe[sk_redis]"
)
Archive powered by MHonArc 2.6.16.