Indentation OK

This commit is contained in:
CLEMENT Iwan
2018-11-08 20:22:15 +01:00
parent b4ea1935e4
commit 5e3f887cdc

View File

@@ -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 %}