Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
fix: add network_config override
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecile Robert-Michon committed Mar 15, 2019
1 parent af77f77 commit a48682b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packer/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ cat /proc/version | tee -a ${RELEASE_NOTES_FILEPATH}
echo ""
echo "Components downloaded in this VHD build (some of the below components might get deleted during cluster provisioning if they are not needed):" >> ${RELEASE_NOTES_FILEPATH}

if [[ UBUNTU_RELEASE == "18.04" ]]; then
overrideNetworkConfig
fi

ETCD_VERSION="3.2.25"
ETCD_DOWNLOAD_URL="https://acs-mirror.azureedge.net/github-coreos"
installEtcd
Expand Down
10 changes: 10 additions & 0 deletions parts/k8s/kubernetesinstalls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -317,3 +317,13 @@ cleanUpContainerImages() {
docker rmi $(docker images --format '{{.Repository}}:{{.Tag}}' | grep 'nginx') &
fi
}

overrideNetworkConfig() {
CONFIG_FILEPATH="/etc/cloud/cloud.cfg.d/80_azure_net_config.cfg"
touch ${CONFIG_FILEPATH}
cat << EOF >> ${CONFIG_FILEPATH}
datasource:
Azure:
apply_network_config: false
EOF
}

0 comments on commit a48682b

Please sign in to comment.