lib.sh: persistent cfg01, mas01 mcpcontrol
[fuel.git] / mcp / patches / pharos / 0004-Use-PXE-interface-index-from-net_config.patch
1 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2 : Copyright (c) 2017 Mirantis Inc., Enea 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 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
10 Date: Fri, 27 Oct 2017 21:00:03 +0200
11 Subject: [PATCH] Use PXE interface index from net_config
12
13 Instead of assuming the PXE network interface is always the first,
14 read its index from 'net_config' section.
15
16 Change-Id: I0b4e9fc89297f4bd718a2e5336746917347c89e1
17 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
18 ---
19  config/installers/fuel/pod_config.yml.j2 | 4 ++--
20  1 file changed, 2 insertions(+), 2 deletions(-)
21
22 diff --git a/config/installers/fuel/pod_config.yml.j2 b/config/installers/fuel/pod_config.yml.j2
23 index 890b380..abded17 100644
24 --- a/config/installers/fuel/pod_config.yml.j2
25 +++ b/config/installers/fuel/pod_config.yml.j2
26 @@ -8,6 +8,7 @@
27      {%- if conf.net_config.public.dns is defined -%}
28          {%- set dns_public = conf['net_config']['public']['dns'] -%}
29      {%- endif -%}
30 +    {%- set pxe_interface = conf['net_config']['admin']['interface'] -%}
31  {%- else -%}
32      {%- set net_admin = '192.168.11.0' -%}
33      {%- set net_mgmt = '172.16.10.0' -%}
34 @@ -15,13 +16,12 @@
35      {%- set net_public = '172.30.10.0' -%}
36      {%- set vlan_mgmt = '300' -%}
37      {%- set vlan_private = '1000' -%}
38 +    {%- set pxe_interface = 0 -%}
39  {%- endif -%}
40
41  {%- if dns_public is not defined -%}
42      {%- set dns_public = [ '8.8.8.8', '8.8.4.4' ] -%}
43  {%- endif -%}
44 -
45 -{%- set pxe_interface = 0 -%}
46  ---
47  parameters:
48    _param: