Update documentation for Cluster-API and Flux
[icn.git] / tools / vagrant / create_user_config.sh
1 #!/bin/bash
2 set -eu -o pipefail
3
4 cat <<EOF >user_config.sh
5 #!/usr/bin/env bash
6
7 #Ironic Metal3 settings for provisioning network
8 export IRONIC_INTERFACE="eth1"
9 EOF
10
11 if [[ ! -z "${DOCKER_REGISTRY_MIRRORS+x}" ]]; then
12     cat <<EOF >>user_config.sh
13
14 #Use a registry mirror for downloading container images
15 export DOCKER_REGISTRY_MIRRORS="${DOCKER_REGISTRY_MIRRORS}"
16 EOF
17 fi