diff options
Diffstat (limited to 'lib/_installers')
-rwxr-xr-x | lib/_installers | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/lib/_installers b/lib/_installers index f972d36..3273f8c 100755 --- a/lib/_installers +++ b/lib/_installers @@ -235,23 +235,20 @@ function _install_ODL { # install_go() - Install GoLang package function install_go { - if is_package_installed golang-go; then + if $(go version &>/dev/null); then return fi - source /etc/os-release || source /usr/lib/os-release - case ${ID,,} in - *suse) - ;; - ubuntu|debian) - install_package software-properties-common - add-apt-repository -y ppa:gophers/archive - ;; - rhel|centos|fedora) - ;; - esac - update_repos + local version=1.10.2 + local os=linux + local arch=amd64 + local tarball=go$version.$os-$arch.tar.gz + + wget https://dl.google.com/go/$tarball + tar -C /usr/local -xzf $tarball + rm $tarball - install_package golang-go + export PATH=$PATH:/usr/local/go/bin + sed -i "s|^PATH=.*|PATH=\"$PATH\"|" /etc/environment } # install_dep() - Install dep GoLand tool @@ -433,7 +430,7 @@ function _install_kubectl { # install_helm() - Function that install Kubernetes Package Manager function install_helm { - local helm_version=v2.7.2 + local helm_version=v2.8.2 local helm_tarball=helm-${helm_version}-linux-amd64.tar.gz if ! $(helm version &>/dev/null); then |