16398085bc1c6d9e2d8b6aed0bdc683bb9722a41
[yaml_builds.git] / tools / j2 / set_site_env.sh
1 #!/bin/bash
2 ##############################################################################
3 # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.        #
4 #                                                                            #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may    #
6 # not use this file except in compliance with the License.                   #
7 #                                                                            #
8 # You may obtain a copy of the License at                                    #
9 #       http://www.apache.org/licenses/LICENSE-2.0                           #
10 #                                                                            #
11 # Unless required by applicable law or agreed to in writing, software        #
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  #
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.           #
14 # See the License for the specific language governing permissions and        #
15 # limitations under the License.                                             #
16 ##############################################################################
17
18 export GENESIS_HOST={{yaml.genesis.host}}
19 echo GENESIS_HOST=$GENESIS_HOST
20 export PXE_INTERFACE={{yaml.networks.pxe.interface}}
21 echo PXE_INTERFACE=$PXE_INTERFACE
22 export HOST_INTERFACE={{yaml.networks.host.interface}}
23 echo HOST_INTERFACE=$HOST_INTERFACE
24 export GENESIS_NAME={{yaml.genesis.name}}
25 echo GENESIS_NAME=$GENESIS_NAME