This commit is contained in:
CLEMENT Iwan
2018-11-08 20:38:47 +01:00
parent 9bf20d2b84
commit 6e1923298d

View File

@@ -4,12 +4,17 @@ include:
{% if grains['os'] == 'Debian' %}
{% set DEBVER = salt['grains.get']('oscodename') %}
Remove K8S Repository:
file.absent:
- names:
- /etc/apt/sources.list.d/k8s.list
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
- gpgkey: https://dl.google.com/linux/linux_signing_key.pub
- key_url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
{% endif %}