From c4ee71bfc8a22588bc0cd35eb59c1a923a98f094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Wed, 7 Nov 2018 22:57:31 +0000 Subject: [PATCH] =?UTF-8?q?Il=20ne=20manque=20plus=20que=20la=20cl=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- softwares/k8s.sls | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/softwares/k8s.sls b/softwares/k8s.sls index 041818e..003d681 100644 --- a/softwares/k8s.sls +++ b/softwares/k8s.sls @@ -4,4 +4,21 @@ include: - softwares.dockerCE + {% if grains['os'] == 'Debian' %} + {% set DEBVER = salt['grains.get']('oscodename') %} + Debian K8S Add Repo: + pkgrepo.managed: + - name: deb https://apt.kubernetes.io/ kubernetes-{{DEBVER}} main + - file: /etc/apt/sources.list.d/k8s.list + - enable: 1 + - key_url: https://download.docker.com/linux/debian/gpg + + K8S installation: + pkg.installed: + - pkgs: + - kubelet + - kubeadm + - kubectl + + {% endif %} {% endif %} \ No newline at end of file