diff --git a/snmp_ee_vnf/helm-charts/eechart/source/install.sh b/snmp_ee_vnf/helm-charts/eechart/source/install.sh index 175f4b6f9d5108e06b96585b0106d5907e9ccdb0..ca6544f1644f7bbb7fe19fa881a4eeb4b41b6088 100755 --- a/snmp_ee_vnf/helm-charts/eechart/source/install.sh +++ b/snmp_ee_vnf/helm-charts/eechart/source/install.sh @@ -18,15 +18,23 @@ echo "installing libraries for snmp generator" #apt-get install -y ... apt-get update +# Install ansible libraries +apt-get install -y software-properties-common +apt-add-repository --yes --update ppa:ansible/ansible +apt install -y ansible + +# Set host checking to false +echo "host_key_checking = False" >> /etc/ansible/ansible.cfg + apt-get install -y python3-pip unzip build-essential libsnmp-dev wget curl -curl -s https://storage.googleapis.com/golang/go1.11.8.linux-amd64.tar.gz | tar -v -C /usr/local -xz +curl -s https://storage.googleapis.com/golang/go1.17.1.linux-amd64.tar.gz | tar -v -C /usr/local -xz export PATH=$PATH:/usr/local/go/bin export GOPATH=/go go get github.com/go-logfmt/logfmt && go get github.com/go-kit/kit/log -wget -q https://github.com/prometheus/snmp_exporter/archive/v0.17.0.tar.gz -P /tmp/ \ -&& tar -C /tmp -xf /tmp/v0.17.0.tar.gz \ -&& (cd /tmp/snmp_exporter-0.17.0/generator && go build) \ -&& cp /tmp/snmp_exporter-0.17.0/generator/generator /usr/local/bin/snmp_generator +wget -q https://github.com/prometheus/snmp_exporter/archive/v0.20.0.tar.gz -P /tmp/ \ +&& tar -C /tmp -xf /tmp/v0.20.0.tar.gz \ +&& (cd /tmp/snmp_exporter-0.20.0/generator && go build) \ +&& cp /tmp/snmp_exporter-0.20.0/generator/generator /usr/local/bin/snmp_generator diff --git a/snmp_setcomm_ee_vnf/helm-charts/eechart/source/install.sh b/snmp_setcomm_ee_vnf/helm-charts/eechart/source/install.sh index 9c9b05f3f14708251719f848b0ffc31a5aa5d73b..c39ba3088fdc54e3568060419cea34ca0ca9ce9c 100755 --- a/snmp_setcomm_ee_vnf/helm-charts/eechart/source/install.sh +++ b/snmp_setcomm_ee_vnf/helm-charts/eechart/source/install.sh @@ -27,15 +27,15 @@ apt install -y ansible echo "host_key_checking = False" >> /etc/ansible/ansible.cfg apt-get install -y python3-pip unzip build-essential libsnmp-dev wget curl -curl -s https://storage.googleapis.com/golang/go1.11.8.linux-amd64.tar.gz | tar -v -C /usr/local -xz +curl -s https://storage.googleapis.com/golang/go1.17.1.linux-amd64.tar.gz | tar -v -C /usr/local -xz export PATH=$PATH:/usr/local/go/bin export GOPATH=/go go get github.com/go-logfmt/logfmt && go get github.com/go-kit/kit/log -wget -q https://github.com/prometheus/snmp_exporter/archive/v0.17.0.tar.gz -P /tmp/ \ -&& tar -C /tmp -xf /tmp/v0.17.0.tar.gz \ -&& (cd /tmp/snmp_exporter-0.17.0/generator && go build) \ -&& cp /tmp/snmp_exporter-0.17.0/generator/generator /usr/local/bin/snmp_generator +wget -q https://github.com/prometheus/snmp_exporter/archive/v0.20.0.tar.gz -P /tmp/ \ +&& tar -C /tmp -xf /tmp/v0.20.0.tar.gz \ +&& (cd /tmp/snmp_exporter-0.20.0/generator && go build) \ +&& cp /tmp/snmp_exporter-0.20.0/generator/generator /usr/local/bin/snmp_generator