Skip to content

Commit

Permalink
Merge pull request #40 from opscode/pw/ohai_aws
Browse files Browse the repository at this point in the history
add ohai ec2 hints by default to aws provider
  • Loading branch information
patrick-wright committed Aug 7, 2014
2 parents 79beee2 + 95d80ea commit a72e3aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/chef_metal_fog/providers/aws.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ def create_servers(action_handler, specs_and_options, parallelizer)
end
end

def convergence_strategy_for(machine_spec, machine_options)
machine_options[:convergence_options][:ohai_hints] = { 'ec2' => ''}
super(machine_spec, machine_options)
end

def self.get_aws_profile(driver_options, aws_account_id)
aws_credentials = get_aws_credentials(driver_options)
compute_options = driver_options[:compute_options] || {}
Expand Down

0 comments on commit a72e3aa

Please sign in to comment.