aboutsummaryrefslogtreecommitdiffstats
path: root/samples/cachestat.yaml
blob: 2dc621be3aa0539ebf02b52433ae906c63261493 (plain)
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
##############################################################################
# Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
---
# Sample benchmark task config file
# Reading cache hit/miss ratio and usage statistics

schema: "yardstick:task:0.1"

scenarios:
-
  type: CACHEstat
  options:
    interval: 1

  host: kratos.demo

  runner:
    type: Duration
    duration: 60

context:
  name: demo
  image: yardstick-image
  flavor: yardstick-flavor
  user: ubuntu

  servers:
    kratos:
      floating_ip: true

  networks:
    test:
      cidr: '10.0.1.0/24'
class="p">: ip link del {{ item["name"] }}; \ ip link add link {{ item["interface"] }} name {{ item["name"] }} type vlan id {{ item["vlan_tag"] }}; \ ip link set {{ item["interface"] }} up when: '"vlan_tag" in item' with_items: "{{ network_cfg['sys_intf_mappings'] }}" - name: set sys intf ip shell: ip addr del {{ item["ip"] }}/{{ item["netmask"] }} dev {{ item["alias"] }}; \ ip addr add {{ item["ip"] }}/{{ item["netmask"] }} dev {{ item["alias"] }}; \ ip link set {{ item["alias"] }} up with_items: "{{ host_ip_settings }}" - name: set gateway shell: ip route del default; \ ip route add default via {{ item["gw"] }} dev {{ item["alias"] }} when: '"gw" in item' with_items: "{{ host_ip_settings }}" - name: copy net config template: src=my_configs.debian dest=/etc/network/interfaces.d/my_configs.cfg when: ansible_os_family == "Debian" - name: source net config lineinfile: dest=/etc/network/interfaces line='source /etc/network/interfaces.d/my_configs.cfg' when: ansible_os_family == "Debian"