Merge "yardstick setup ansible, including load_images"
[yardstick.git] / ansible / roles / create_fuel_pod_yaml / templates / fuel_pod.yaml.j2
1 ##############################################################################
2 # Copyright (c) 2017 Ericsson AB and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 ---
10 # sample config file about the POD information, including the
11 # name/IP/user/ssh key of Bare Metal and Controllers/Computes
12 #
13 # The options of this config file include:
14 # name: the name of this node
15 # role: node's role, support role: Master/Controller/Comupte/BareMetal
16 # ip: the node's IP address
17 # user: the username for login
18 # key_filename:the path of the private key file for login
19 # ipX: the ips of the nodes will be fetched by prepare_env.sh and replaced here
20
21 nodes:
22 {% for fuel_node in fuel_nodes %}
23 -
24     name: {{ fuel_node.name }}
25     {% if "contoller" in fuel_node.roles %}
26     role: Controller
27     {% elif "compute" in fuel_node.roles %}
28     role: Compute
29     {% endif %}
30     ip: {{ fuel_node.ip }}
31     user: root
32     key_filename: /root/.ssh/id_rsa
33 {% endfor %}