Indentation OK
This commit is contained in:
@@ -1,25 +1,23 @@
|
||||
# Installation de Kubernetes
|
||||
|
||||
{% if grains['kernel'] == 'Linux' %}
|
||||
include:
|
||||
- linux.docker-ce
|
||||
|
||||
{% 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
|
||||
- gpgkey: https://dl.google.com/linux/linux_signing_key.pub
|
||||
# - key_url: https://download.docker.com/linux/debian/gpg
|
||||
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://download.docker.com/linux/debian/gpg
|
||||
{% endif %}
|
||||
|
||||
K8S installation:
|
||||
pkg.installed:
|
||||
- pkgs:
|
||||
- kubelet
|
||||
- kubeadm
|
||||
- kubectl
|
||||
K8S installation:
|
||||
pkg.installed:
|
||||
- pkgs:
|
||||
- kubelet
|
||||
- kubeadm
|
||||
- kubectl
|
||||
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user