Merge "Move test scripts to tools/"
[yardstick.git] / ansible / roles / vcpu_pin_set_setup / tasks / main.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 - name: set memory reserved for host
12   lineinfile:
13     dest: /etc/nova/nova.conf
14     insertafter: 'DEFAULT'
15     line: 'reserved_host_memory_mb={{host_memory}}'
16
17 - name: set vcpu pin set
18   lineinfile:
19     dest: /etc/nova/nova.conf
20     insertafter: 'DEFAULT'
21     line: 'vcpu_pin_set={{cpu_set}}'