Upgrade collectd to version 5.8
[yardstick.git] / ansible / migrate_pinning_setup.yaml
1 ---
2 ##############################################################################
3 # Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 - hosts: localhost
12   roles:
13     - create_flavor
14     - role: set_flavor_property
15       key: "hw:cpu_policy"
16       value: "dedicated"
17     - role: set_flavor_property
18       key: "hw:numa_nodes"
19       value: "1"
20
21 - hosts: nodes
22   roles:
23     - backup_nova_conf
24     - role: set_nova_conf
25       section: "DEFAULT"
26       key: "live_migration_flag"
27       value: "VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE,VIR_MIGRATE_TUNNELLED"
28     - role: set_nova_conf
29       section: "DEFAULT"
30       key: "vncserver_listen"
31       value: "0.0.0.0"
32
33 - hosts: controller
34   roles:
35     - role: set_nova_conf
36       section: "DEFAULT"
37       key: "scheduler_default_filters"
38       value: "NUMATopologyFilter"
39     - role: restart_nova_service
40       service: "nova-scheduler"
41
42 - hosts: compute
43   roles:
44     - role: set_nova_conf
45       section: "DEFAULT"
46       key: "vcpu_pin_set"
47       value: "{{ cpu_set }}"
48     - role: restart_nova_service
49       service: "nova-compute"