summaryrefslogtreecommitdiffstats
path: root/config/installers
diff options
context:
space:
mode:
authorGuillermo Herrero <guillermo.herrero@enea.com>2018-01-22 14:19:20 +0100
committerGuillermo Herrero <guillermo.herrero@enea.com>2018-01-24 11:54:30 +0100
commitfb96878b168e251f0752de24fe554faaa5ad9f9f (patch)
tree7544d52c5ff6c6888c43ef5000e376eaac0fca8e /config/installers
parent7d2b744815ddbaf494872a0e9b82bdcf40b85ad5 (diff)
[fuel] Get public pool parameters from idf.fuel
Reads parameters from idf.fuel.config.public_pool start_ip and end_ip JIRA: FUEL-315 Change-Id: I4456b22bc21b20906f18953d80a57483fd6700bc Signed-off-by: Guillermo Herrero <guillermo.herrero@enea.com>
Diffstat (limited to 'config/installers')
-rw-r--r--config/installers/fuel/pod_config.yml.j216
1 files changed, 12 insertions, 4 deletions
diff --git a/config/installers/fuel/pod_config.yml.j2 b/config/installers/fuel/pod_config.yml.j2
index 8d40f3d9..04eff45c 100644
--- a/config/installers/fuel/pod_config.yml.j2
+++ b/config/installers/fuel/pod_config.yml.j2
@@ -6,7 +6,7 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
---
-{%- if conf.idf is defined and conf.idf.fuel is defined -%}
+{%- if conf.idf is defined and conf.idf.fuel is defined %}
{%- if conf.idf.net_config is defined -%}
{%- set net_admin = conf.idf.net_config.admin.network -%}
{%- set net_mgmt = conf.idf.net_config.mgmt.network -%}
@@ -22,6 +22,10 @@
{%- if conf.idf.net_config.public.gateway is defined -%}
{%- set net_public_gw = conf.idf.net_config.public.gateway -%}
{%- endif -%}
+ {%- if conf.idf.fuel.network.public_pool is defined -%}
+ {%- set net_public_pool_start = conf.idf.fuel.network.public_pool.start_ip -%}
+ {%- set net_public_pool_end = conf.idf.fuel.network.public_pool.end_ip -%}
+ {%- endif -%}
{%- else -%}
{%- set net_admin = '192.168.11.0' -%}
{%- set net_mgmt = '172.16.10.0' -%}
@@ -37,7 +41,11 @@
{%- set dns_public = [ '8.8.8.8', '8.8.4.4' ] -%}
{%- endif -%}
{%- if net_public_gw is not defined -%}
- {%- set net_public_gw = net_public | ipaddr_index('1') -%}
+ {%- set net_public_gw = net_public | ipaddr_index('1') -%}
+ {%- endif -%}
+ {%- if net_public_pool_start is not defined or net_public_pool_end is not defined -%}
+ {%- set net_public_pool_start = net_public | ipaddr_index('80') -%}
+ {%- set net_public_pool_end = net_public | ipaddr_index('100') -%}
{%- endif %}
parameters:
_param:
@@ -105,8 +113,8 @@ parameters:
opnfv_net_public: {{ net_public }}/{{ net_public_mask }}
opnfv_net_public_mask: {{ net_public_mask | netmask }}
opnfv_net_public_gw: {{ net_public_gw }}
- opnfv_net_public_pool_start: {{ net_public | ipaddr_index(80) }}
- opnfv_net_public_pool_end: {{ net_public | ipaddr_index(100) }}
+ opnfv_net_public_pool_start: {{ net_public_pool_start }}
+ opnfv_net_public_pool_end: {{ net_public_pool_end }}
opnfv_name_servers: {{ dns_public }}
opnfv_dns_server01: '{{ dns_public[0] }}'