Skip to content

Instantly share code, notes, and snippets.

@Silvenga
Created Nov 17, 2017
Embed
What would you like to do?
Install Pre-Reqs:
pkg.installed:
- pkgs:
- apt-transport-https
- ca-certificates
- curl
- software-properties-common
Install Docker Apt Repo:
pkgrepo.managed:
- name: deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ salt.cmd.run('lsb_release -cs') }} stable
- key_url: https://download.docker.com/linux/ubuntu/gpg
- require:
- Install Pre-Reqs
Install Docker:
pkg.installed:
- name: docker-ce
- require:
- Install Docker Apt Repo
include:
- app.docker
Install K8s Pre-Reqs:
pkg.installed:
- name: apt-transport-https
Install K8s Apt Repo:
pkgrepo.managed:
- name: deb http://apt.kubernetes.io/ kubernetes-xenial main
- key_url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
- require:
- Install K8s Pre-Reqs
Install K8s Packages:
pkg.installed:
- pkgs:
- kubelet
- kubeadm
- kubectl
Install NFS Support:
pkg.installed:
- name: nfs-common
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment