Merge changes from topics 'baremetal-noha', 'move-maas-classes'
[fuel.git] / mcp / reclass / classes / cluster / all-mcp-arch-common / opnfv / lab_proxy_pdf.yml.j2
1 ##############################################################################
2 # Copyright (c) 2018 Mirantis Inc., Enea AB and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 ##############################################################################
8 ---
9 # We'll craft this class so it can be reused on both cfg01 and mas01
10 {%- if conf.idf.fuel.network.upstream_proxy is defined %}
11 {%- set upstream_proxy=conf.idf.fuel.network.upstream_proxy %}
12 parameters:
13   maas:
14     region:
15       upstream_proxy:
16         address: {{ upstream_proxy.address }}
17         port: {{ upstream_proxy.port }}
18   linux:
19     system:
20       proxy:
21         pkg:
22           enabled: true
23           http: http://{{ upstream_proxy.address }}:{{ upstream_proxy.port }}
24           https: http://{{ upstream_proxy.address }}:{{ upstream_proxy.port }}
25 {%- endif %}