-
Notifications
You must be signed in to change notification settings - Fork 2
/
ec2-benchmark.yml
42 lines (37 loc) · 882 Bytes
/
ec2-benchmark.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
- name: Initialize EC2 servers and import inventory
hosts: localhost
connection: local
gather_facts: false
tasks:
- import_role:
name: aws_ec2
vars:
operation: create
- import_role:
name: add_hosts_from_inventory
vars:
inventory_file: "{{ cluster_name }}_{{ region }}_inventory.yaml"
- name: Start Server on EC2
hosts: server
roles: [ server ]
- name: Start Hyperfoil Controller on EC2
hosts: hyperfoil_controller
roles:
- role: hyperfoil_controller
vars:
ssh_key: benchmark
- name: Run Hyperfoil Test
hosts: hyperfoil_agent
roles:
- role: hyperfoil_agent
vars:
ssh_key: benchmark
download_results: true
- name: Delete EC2 instances
hosts: localhost
connection: local
gather_facts: false
roles:
- role: aws_ec2
vars:
operation: delete