PagerDuty / blender

A modular orchestration engine
https://github.com/PagerDuty/blender
Other
183 stars 8 forks source link

(feat) Allow nesting #41

Closed ranjib closed 9 years ago

ranjib commented 9 years ago

Allow running full blown blender scripts as a task from other blender jobs.

blend_task 'cassandra_repair' do
  script 'blends/repair.rb'
  strategy :per_host
end

By default, driver specific configurations are not passed. User can either specify configurations explicitly, or tell blender to copy a list of driver configurations.

Example of specifying explicit configurations:

blend_task 'cassandra_repair' do
  script 'blends/repair.rb'
  config :ssh, user: 'ubuntu', password: 'test'
end

To copy over the configurations from current blender script:

blend_task 'cassandra_repair' do
  script 'blends/repair.rb'
  pass_configs :ssh
end