aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/config-controller/vars/main.yml
blob: 701ec52b755b1c5fc673574e4211c865895d63bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# #############################################################################
# Copyright (c) 2017 HUAWEI TECHNOLOGIES CO.,LTD and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
# #############################################################################
---
LOCAL_REPOSITORY_IP: "192.168.137.222"

intf_external: |-
  {%- set intf_external = contr_sys_mappings["external"]["interface"] %}
  {%- if contr_sys_mappings["external"]["vlan_tag"] | int %}
  {%- set intf_external = intf_external + '.' + contr_sys_mappings["external"]["vlan_tag"]|string %}
  {%- endif %}
  {{- intf_external }}

intf_tenant: |-
  {%- set intf_tenant = contr_sys_mappings["tenant"]["interface"] %}
  {%- if contr_sys_mappings["tenant"]["vlan_tag"] | int %}
  {%- set intf_tenant = intf_tenant + '.' + contr_sys_mappings["tenant"]["vlan_tag"]|string %}
  {%- endif %}
  {{- intf_tenant }}

intf_storage: |-
  {%- set intf_storage = contr_sys_mappings["storage"]["interface"] %}
  {%- if contr_sys_mappings["storage"]["vlan_tag"] | int %}
  {%- set intf_storage = intf_storage + '.' + contr_sys_mappings["storage"]["vlan_tag"]|string %}
  {%- endif %}
  {{- intf_storage }}