Skip to content
Snippets Groups Projects
Commit e4022249 authored by garciadeblas's avatar garciadeblas
Browse files

Add option -y to add-apt-repository in installers, always required for Ubuntu22


Change-Id: I83cbb5e3e21fb31747d8c2ce3b84bb79069ae4a1
Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent ad2cda6c
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ function install_docker_ce() { ...@@ -22,7 +22,7 @@ function install_docker_ce() {
sudo apt-get -qq update sudo apt-get -qq update
sudo apt-get install -y apt-transport-https ca-certificates software-properties-common sudo apt-get install -y apt-transport-https ca-certificates software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" sudo add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get -qq update sudo apt-get -qq update
sudo apt-get install -y docker-ce sudo apt-get install -y docker-ce
# echo "Reconfiguring Docker to use systemd as cgroup driver" # echo "Reconfiguring Docker to use systemd as cgroup driver"
......
...@@ -26,7 +26,7 @@ function install_kube() { ...@@ -26,7 +26,7 @@ function install_kube() {
sudo apt-get update && sudo apt-get install -y apt-transport-https sudo apt-get update && sudo apt-get install -y apt-transport-https
sudo apt-get update && sudo apt-get install -y apt-transport-https sudo apt-get update && sudo apt-get install -y apt-transport-https
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo add-apt-repository "deb https://apt.kubernetes.io/ kubernetes-xenial main" sudo add-apt-repository -y "deb https://apt.kubernetes.io/ kubernetes-xenial main"
sudo apt-get update sudo apt-get update
echo "Installing Kubernetes Packages ..." echo "Installing Kubernetes Packages ..."
sudo apt-get install -y kubelet=${K8S_VERSION} kubeadm=${K8S_VERSION} kubectl=${K8S_VERSION} sudo apt-get install -y kubelet=${K8S_VERSION} kubeadm=${K8S_VERSION} kubectl=${K8S_VERSION}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment