[submodule] Add docker-salt-formulas, ci/build.sh
[fuel.git] / mcp / patches / 0008-Handle-extra-environment-variables.patch
1 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2 : Copyright (c) 2018 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: Michael Polenchuk <mpolenchuk@mirantis.com>
10 Date: Mon, 12 Mar 2018 17:43:09 +0400
11 Subject: [PATCH] Handle extra environment variables
12
13 Change-Id: Ieae46ac65041630759c82238a8a5ce0535c454b2
14
15 diff --git a/keystone/files/keystonercv3 b/keystone/files/keystonercv3
16 index 1b7f378..984c8a2 100644
17 --- a/keystone/files/keystonercv3
18 +++ b/keystone/files/keystonercv3
19 @@ -11,3 +11,6 @@ export OS_REGION_NAME={{ server.region }}
20  export OS_INTERFACE=internal
21  export OS_ENDPOINT_TYPE="internal"
22  export OS_CACERT="{{ server.cacert }}"
23 +{%- for opt, value in server.get('openrc_extra', {}).iteritems() %}
24 +{{ "export %s=%s"|format(opt|upper, value) }}
25 +{%- endfor %}