forked from clearstorydata-cookbooks/apache_spark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen-ec2.yml
68 lines (62 loc) · 1.71 KB
/
.kitchen-ec2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright 2015 ClearStory Data, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#<% require 'kitchen-sync' %>
---
driver:
name: ec2
instance_type: r3.large
require_chef_omnibus: true
security_group_ids: [<%= ENV['TEST_KITCHEN_AWS_SECURITY_GROUP_ID'] %>]
price: 0.03
tags:
created-by: test-kitchen
launched-by: <%= ENV['USER'] %>
purpose: cookbook-test
cookbook: apache_spark
transport:
ssh_key: ~/.ssh/<%= ENV['AWS_SSH_KEY_ID'] %>.pem
connection_timeout: 10
conenction_retries: 5
provisioner:
name: chef_solo
platforms:
- name: ubuntu-14.04
driver:
image_id: ami-c94856a8
region: us-west-2
transport:
username: ubuntu
# TODO: find a CentOS AMI in the us-west-2 region
# - name: centos-6.5
# driver_config:
# image_id:
suites:
- name: testkitchen_apache_spark
run_list:
- recipe[apache_spark_test::spark]
- recipe[minitest-handler]
attributes:
java:
jdk_version: 7
hadoop:
distribution: cdh
core_site:
fs.defaultFS: hdfs://localhost:54310
sysctl: {}
monit:
config:
poll_freq: 3 # for faster tests
minitest:
recipes:
- apache_spark_test::spark