add support for Jinja2 in task file
[yardstick.git] / samples / ping-template.yaml
1 # Sample benchmark task config file
2 # measure network latency using ping
3 # Jinja2 Syntax is supported
4 # parameterize this task, {{packetsize}} is passed to the scenario as an argument
5 # If you don't pass the value for {{packetsize}} while starting a task,
6 # the default one will be used.
7
8
9 schema: "yardstick:task:0.1"
10 {% set packetsize = packetsize or "100" %}
11 scenarios:
12 -
13   type: Ping
14   options:
15     packetsize: {{packetsize}}
16   host: athena.demo
17   target: ares.demo
18
19   runner:
20     type: Duration
21     duration: 60
22     interval: 1
23
24   sla:
25     max_rtt: 10
26     action: monitor
27
28 context:
29   name: demo
30   image: cirros-0.3.3
31   flavor: m1.tiny
32   user: cirros
33
34   placement_groups:
35     pgrp1:
36       policy: "availability"
37
38   servers:
39     athena:
40       floating_ip: true
41       placement: "pgrp1"
42     ares:
43       placement: "pgrp1"
44
45   networks:
46     test:
47       cidr: '10.0.1.0/24'
48       external_network: "net04_ext"
49