This cookbook creates a Rundeck project from a Fabric fabfile stored in git. This allows you to use the same code for both local tasks and service-based operations. This depends on the Balanced version of the rundeck cookbook.
Scheduled jobs can be created automatically by using the @cron
decorator and
other helpers in fabric-rundeck.
Set the node attribute ['rundeck-fabric']['repository']
to a Git URI and
include_recipe 'rundeck-fabric'
. This will create a project named "fabric"
with one job for each task in your fabfile.
node['rundeck-fabric']['repository']
– Git URI to clone from.node['rundeck-fabric']['revision']
– Git branch or tag to use. (default: master)node['rundeck-fabric']['version']
– Version of Fabric to install. (default: latest)node['rundeck-fabric']['fabric_rundeck_version']
– Version of fabric-rundeck to install. (default: latest)
The rundeck_fabric_project
resource creates a Rundeck project based on a fabfile.
rundeck_fabric_project 'name' do
fabric_repository 'git://...'
fabric_revision 'release'
fabric_version '1.8.3'
end
fabric_repository
– Git URI to clone from. (default: node['rundeck-fabric']['repository'], required)fabric_revision
– Git branch or tag to use. (default: node['rundeck-fabric']['revision'])fabric_version
– Version of Fabric to install. (default: node['rundeck-fabric']['version'])fabric_rundeck_version
– Version of fabric-rundeck to install. (default: node['rundeck-fabric']['fabric_rundeck_version'])