Sha256: bea3cec439d731fbc0d7fd4d732a69c1eadece194d118cedf6bb40351bb1cae1

Contents?: true

Size: 620 Bytes

Versions: 6

Compression:

Stored size: 620 Bytes

Contents

require 'chef/resource/lwrp_base'

class Chef::Resource::MachineBatch < Chef::Resource::LWRPBase
  self.resource_name = 'machine_batch'

  def initialize(*args)
    super
    @machines = []
    @chef_server = run_context.cheffish.current_chef_server
  end

  # TODO there is a useful action sequence where one does an ohai on all machines,
  # waits for that to complete, save the nodes, and THEN converges.
  actions :acquire, :setup, :converge, :stop, :destroy
  default_action :converge

  attribute :machines, :kind_of => [ Array ]
  attribute :max_simultaneous, :kind_of => [ Integer ]
  attribute :chef_server
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
clc-fork-chef-metal-0.11.beta.5 lib/chef/resource/machine_batch.rb
chef-metal-0.11.beta.5 lib/chef/resource/machine_batch.rb
chef-metal-0.11.beta.4 lib/chef/resource/machine_batch.rb
chef-metal-0.11.beta.3 lib/chef/resource/machine_batch.rb
chef-metal-0.11.beta.2 lib/chef/resource/machine_batch.rb
chef-metal-0.11.beta lib/chef/resource/machine_batch.rb