forked from Appdynamics/appdynamics-cookbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.ec2.yml
134 lines (125 loc) · 3.46 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
driver:
name: ec2
aws_ssh_key_id: <%= ENV['AWS_SSH_KEY'] %>
security_group_ids: <%= ENV['AWS_SECURITY_GROUPS'] %>
region: <%= ENV['AWS_REGION'] %>
availability_zone: <%= ENV['AWS_AVAILABILITY_ZONE'] %>
require_chef_omnibus: true
subnet_id: <%= ENV['AWS_SUBNET'] %>
associate_public_ip: false
interface: private
tags:
OWNER: <%= ENV['AWS_OWNER_TAG'] %>
provisioner:
name: chef_zero
attributes:
appdynamics:
version: '4.1.3.0'
app_name: test-app
tier_name: test-tier
node_name: test-node
controller:
host: controller-host
port: 443
ssl: true
user: controller-user
accesskey: controller-accesskey
http_proxy:
host: http-proxy-host
port: 2345
user: http-proxy-user
password_file: /tmp/foo/bar
transport:
ssh_key: <%= ENV['SSH_KEY_PATH'] %><%= ENV['AWS_SSH_KEY'] %>.pem
platforms:
- name: centos
driver:
image_id: <%= ENV['AWS_CENTOS_AMI_ID'] %>
instance_type: <%= ENV['LINUX_INSTANCE_SIZE'] %>
user_data: <%= ENV['LINUX_USER_DATA_PATH'] %>
transport:
username: <%= ENV['AWS_CENTOS_USERNAME'] %>
- name: ubuntu
driver:
image_id: <%= ENV['AWS_UBUNTU_AMI_ID'] %>
instance_type: <%= ENV['LINUX_INSTANCE_SIZE'] %>
user_data: <%= ENV['LINUX_USER_DATA_PATH'] %>
transport:
username: <%= ENV['AWS_UBUNTU_USERNAME'] %>
- name: windows-2012r2
driver:
image_id: <%= ENV['AWS_WINDOWS2012R2_AMI_ID'] %>
instance_type: <%= ENV['WINDOWS_INSTANCE_SIZE'] %>
user_data: <%= ENV['WINDOWS_USER_DATA_PATH'] %>
transport:
name: winrm
- name: windows-2008r2
driver:
image_id: <%= ENV['AWS_WINDOWS2008R2_AMI_ID'] %>
instance_type: <%= ENV['WINDOWS_INSTANCE_SIZE'] %>
user_data: <%= ENV['WINDOWS_USER_DATA_PATH'] %>
transport:
name: winrm
suites:
- name: nodejs_agent
run_list:
- recipe[nodejs::default]
- recipe[appdynamics::nodejs_agent]
attributes:
nodejs:
install_method: source
version: '4.1.3'
appdynamics:
nodejs_agent:
path: /home/vagrant
excludes:
- windows-2012r2
- windows-2008r2
- name: python_agent
run_list:
- recipe[python::default]
- recipe[appdynamics::python_agent]
attributes:
appdynamics:
python_agent:
debug: true
dir: '/opt/pyagent'
excludes:
- windows-2012r2
- windows-2008r2
- name: machine_agent
run_list:
- recipe[apt::default]
- recipe[java::default]
- recipe[appdynamics::machine_agent]
excludes:
- windows-2012r2
- windows-2008r2
- name: java_agent
run_list:
- recipe[test-helper::default]
- recipe[appdynamics_test::java_agent]
- recipe[apt::default]
- recipe[appdynamics::java_agent]
attributes:
appdynamics:
java_agent:
owner: someuser
excludes:
- windows-2012r2
- windows-2008r2
- name: dotnet_agent
run_list:
- recipe[iis]
- recipe[appdynamics::dotnet_agent]
attributes:
appdynamics:
dotnet_agent:
instrument_iis: true
standalone_apps: [{name: W3SVC, executable: svchost.exe, tier: w3svc, commandline: -k iissvcs, restart: false },{name: MSDTC, executable: msdtc.exe, tier: msdtc, commandline: , restart: true}]
chef_client:
config:
log_level: :debug
excludes:
- ubuntu
- centos