Skip to content

Commit

Permalink
feat(Helm): Adding Helm, Plugins and Helmfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hypery2k committed Jun 10, 2022
1 parent 259df8e commit 41494d8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
16 changes: 13 additions & 3 deletions roles/prepare/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,21 @@
- name: Install NodeJS LTS
raw: curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash - && apt-get install -y nodejs

- name: Boostrap kubectl
raw: curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod +x ./kubectl && mv ./kubectl /usr/local/bin/kubectl

- name: Install Docker
raw: curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list && apt-get -y update && apt-get -y install docker-ce docker-ce-cli containerd.io

- name: Install Azure CLI
raw: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash

- name: Install Helm
raw: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash

- name: Install Helm Plugins
raw: "helm plugin install {{ item.url }}"
with_items: '{{ helm_plugins }}'

- name: Install Kustomize
raw: curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash

- name: Install Helmfile
raw: wget -O helmfile_linux_amd64 https://github.com/roboll/helmfile/releases/download/v0.144.0/helmfile_linux_amd64 && mv helmfile_linux_amd64 /usr/local/bin/helmfile && chmod 755 /usr/local/bin/helmfile
12 changes: 12 additions & 0 deletions roles/prepare/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ common_packages:
- "unzip"
- "vim"
- "wget"
# Cloud Tools
- kubectl
# DB Clients
- "postgresql-client"
# Blocked by https://github.com/dbcli/mssql-cli/pull/505
Expand All @@ -29,7 +31,17 @@ apt_keys:
- "https://packages.microsoft.com/keys/microsoft.asc"
- "https://www.mongodb.org/static/pgp/server-4.4.asc"
apt_repos:
- "deb https://apt.kubernetes.io/ kubernetes-xenial main"
- "deb http://packages.cloud.google.com/apt cloud-sdk main"
- "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main"
- "deb [arch=amd64] https://packages.microsoft.com/debian/10/prod buster main"
- "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main"
helm_plugins:
- url: https://github.com/databus23/helm-diff
version: v3.3.1
- url: https://github.com/jkroepke/helm-secrets
version: v3.5.0
- url: https://github.com/hypnoglow/helm-s3
version: v0.10.0
- url: https://github.com/aslafy-z/helm-git
version: v0.10.0

0 comments on commit 41494d8

Please sign in to comment.