lib/poise_boiler/helpers/kitchen.rb
# Generate extra Test Kitchen platform configuration for Windows hosts.
Generate extra Test Kitchen platform configuration for Windows hosts.
Generate extra Test Kitchen platform configuration for Windows hosts .
def windows_platform_config(name)
        {
          'driver' => ec2_driver_config.merge({
            'instance_type' => 'm3.medium',
            'retryable_tries' => 120,
          }),
          'provisioner' => {
            'product_name' => 'chef',
            'channel' =>  chef_version ? 'stable' : 'current',
            'product_version' => chef_version,
          },
          'transport' => {
            'name' => 'winrm',
            'ssh_key' => "#{base}/test/ec2/ssh.key",
          },
        }.tap do |cfg|
          if name == 'windows-2008sp2'
            cfg['driver']['image_id'] = 'ami-f6a043e0'
            cfg['driver']['instance_type'] = 'm1.medium'
            cfg['driver']['subnet_id'] = ENV['AWS_SUBNET_ID'] || DEFAULT_EC2_LEGACY_INSTANCES_SUBNET_ID
            cfg['provisioner']['architecture'] = 'i386'
          end
        end
      end
def windows_platform_config ( name ) { 'driver' => ec2_driver_config . merge ( { 'instance_type' => 'm3.medium' , 'retryable_tries' => 120 , } ) , 'provisioner' => { 'product_name' => 'chef' , 'channel' => chef_version ? 'stable' : 'current' , 'product_version' => chef_version , } , 'transport' => { 'name' => 'winrm' , 'ssh_key' => "#{base}/test/ec2/ssh.key" , } , } . tap do | cfg | if name == 'windows-2008sp2' cfg [ 'driver' ] [ 'image_id' ] = 'ami-f6a043e0' cfg [ 'driver' ] [ 'instance_type' ] = 'm1.medium' cfg [ 'driver' ] [ 'subnet_id' ] = ENV [ 'AWS_SUBNET_ID' ] || DEFAULT_EC2_LEGACY_INSTANCES_SUBNET_ID cfg [ 'provisioner' ] [ 'architecture' ] = 'i386' end end end
Generate extra Test Kitchen platform configuration for Windows hosts.
Generate extra Test Kitchen platform configuration for Windows hosts .
name
<not_specific>