Indentation OK
This commit is contained in:
@@ -1,25 +1,23 @@
|
|||||||
# Installation de Kubernetes
|
|
||||||
|
|
||||||
{% if grains['kernel'] == 'Linux' %}
|
{% if grains['kernel'] == 'Linux' %}
|
||||||
include:
|
include:
|
||||||
- linux.docker-ce
|
- linux.docker-ce
|
||||||
|
|
||||||
{% if grains['os'] == 'Debian' %}
|
{% if grains['os'] == 'Debian' %}
|
||||||
{% set DEBVER = salt['grains.get']('oscodename') %}
|
{% set DEBVER = salt['grains.get']('oscodename') %}
|
||||||
Debian K8S Add Repo:
|
Debian K8S Add Repo:
|
||||||
pkgrepo.managed:
|
pkgrepo.managed:
|
||||||
- name: deb https://apt.kubernetes.io/ kubernetes-{{DEBVER}} main
|
- name: deb https://apt.kubernetes.io/ kubernetes-{{DEBVER}} main
|
||||||
- file: /etc/apt/sources.list.d/k8s.list
|
- file: /etc/apt/sources.list.d/k8s.list
|
||||||
- enable: 1
|
- enable: 1
|
||||||
- gpgkey: https://dl.google.com/linux/linux_signing_key.pub
|
- gpgkey: https://dl.google.com/linux/linux_signing_key.pub
|
||||||
# - key_url: https://download.docker.com/linux/debian/gpg
|
# - key_url: https://download.docker.com/linux/debian/gpg
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
K8S installation:
|
K8S installation:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- pkgs:
|
- pkgs:
|
||||||
- kubelet
|
- kubelet
|
||||||
- kubeadm
|
- kubeadm
|
||||||
- kubectl
|
- kubectl
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
Reference in New Issue
Block a user