I am creating a bunch of different chef vendors to deploy different types of applications. The chef's documentation for Expand Lightweight Provider suggests that this is possible, but does not really say what to do. This page suggests that you may need a call mixin, but I donβt know what structure my code should have in the file under /libraries, or how to actually include this code in something under /providers.
Here are examples of what I want to do.
In my base class under /libraries:
repository "http://my.svn.server/#{deployment[:project]}/branches/#{node[:chef_environment]}/"
user "deploy"
scm_provider Chef::Provider::Subversion
svn_username "svn_user"
svn_password "password"
In my provider for deploying Torquebox Rails applications:
deploy_revision "/my/deployment/directory/#{deployment[:project]}" do
environment "RAILS_ENV" => node[:chef_environment]
restart_command "rake torquebox:deploy"
end
And, of course, other types of providers for different types of applications.
Can someone point me in the right direction? Is there documentation somewhere I am missing?
user1454117