diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-02-06 17:31:04 -0800 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2018-02-06 18:11:15 -0800 |
commit | 374498a7796e1755086579c8160206feb2375079 (patch) | |
tree | cd3c5281f31fb2d630ae05106ba66c8fe246725d /deployment/heat/onap-oom/k8s_vm_entrypoint.sh | |
parent | 7b94e0a63c3598eea5e1eed18bb5cd1cd0b0beb2 (diff) |
Add config for ATT TLAB
Change-Id: I31387cbb17db19cd602cc9d4da59a55223996583
Issue-ID: INT-414
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'deployment/heat/onap-oom/k8s_vm_entrypoint.sh')
-rw-r--r-- | deployment/heat/onap-oom/k8s_vm_entrypoint.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/deployment/heat/onap-oom/k8s_vm_entrypoint.sh b/deployment/heat/onap-oom/k8s_vm_entrypoint.sh index 216a187af..9118c8e24 100644 --- a/deployment/heat/onap-oom/k8s_vm_entrypoint.sh +++ b/deployment/heat/onap-oom/k8s_vm_entrypoint.sh @@ -5,15 +5,19 @@ mkdir -p /opt/config echo "__rancher_ip_addr__" > /opt/config/rancher_ip_addr.txt echo `hostname -I` `hostname` >> /etc/hosts mkdir -p /etc/docker -cat > /etc/docker/daemon.json <<EOF +if [ ! -z "__docker_proxy__" ]; then + cat > /etc/docker/daemon.json <<EOF { "insecure-registries" : ["__docker_proxy__"] } EOF -cat > /etc/apt/apt.conf.d/30proxy<<EOF +fi +if [ ! -z "__apt_proxy__" ]; then + cat > /etc/apt/apt.conf.d/30proxy<<EOF Acquire::http { Proxy "http://__apt_proxy__"; }; Acquire::https::Proxy "DIRECT"; EOF +fi apt-get -y update apt-get -y install linux-image-extra-$(uname -r) jq |