aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/config-compute/vars/main.yml
blob: b157f910806d9fd09064d41840c4b7b31795fe5c (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 = compu_sys_mappings["external"]["interface"] %}
  {%- if compu_sys_mappings["external"]["vlan_tag"] | int %}
  {%- set intf_external = intf_external + '.' + compu_sys_mappings["external"]["vlan_tag"]|string %}
  {%- endif %}
  {{- intf_external }}

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

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