lib/poise_boiler/helpers/kitchen.rb
# Generate a Test Kitchen driver configuration hash with basic settings
# for kitchen-ec2.
#
# @return [Hash]
Generate a Test Kitchen driver configuration hash with basic settings
for kitchen-ec2.
Generate a Test Kitchen driver configuration hash with basic settings for kitchen - ec2 .
def ec2_driver_config
        {
          'name' => 'ec2',
          'aws_ssh_key_id' => "#{cookbook_name}-kitchen",
          'security_group_ids' => ENV['AWS_SECURITY_GROUP_ID'] ? [ENV['AWS_SECURITY_GROUP_ID']] : [DEFAULT_EC2_SECURITY_GROUP_ID],
          'subnet_id' => ENV['AWS_SUBNET_ID'] || DEFAULT_EC2_SUBNET_ID,
          'flavor_id' => nil,
        }
      end
def ec2_driver_config { 'name' => 'ec2' , 'aws_ssh_key_id' => "#{cookbook_name}-kitchen" , 'security_group_ids' => ENV [ 'AWS_SECURITY_GROUP_ID' ] ? [ ENV [ 'AWS_SECURITY_GROUP_ID' ] ] : [ DEFAULT_EC2_SECURITY_GROUP_ID ] , 'subnet_id' => ENV [ 'AWS_SUBNET_ID' ] || DEFAULT_EC2_SUBNET_ID , 'flavor_id' => nil , } end
Generate a Test Kitchen driver configuration hash with basic settings
for kitchen-ec2.
Generate a Test Kitchen driver configuration hash with basic settings for kitchen - ec2 .
# Because kitchen-rackspace also has a thing called flavor_id.
None
Hash