Skip to content

Commit

Permalink
feat(NodeJS): Use new APT source for NodeJS
Browse files Browse the repository at this point in the history
  • Loading branch information
hypery2k committed Mar 6, 2024
1 parent bdd1436 commit b1d9a15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions roles/prepare/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@
- name: Defaulting to python 3
raw: update-alternatives --install /usr/bin/python python /usr/bin/python3 1

- name: Install NodeJS LTS
raw: curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash - && apt-get install -y nodejs

- 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=$(dpkg --print-architecture) 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 docker-compose-plugin

Expand Down
4 changes: 4 additions & 0 deletions roles/prepare/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ common_packages:
- sqlcmd
#- "mongocli"
#- "mongodb-database-tools"
- "nodejs"
snap_packages:
- jq
- yq
Expand All @@ -47,10 +48,13 @@ apt_keys:
file_name: google.gpg
- url: "https://packages.microsoft.com/keys/microsoft.asc"
file_name: microsoft.gpg
- url: "https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key"
file_name: nodesource.gpg
apt_repos:
- "deb [signed-by=/etc/apt/keyrings/k8s.gpg] https://pkgs.k8s.io/core:/stable:/v1.28/deb/ /"
- "deb [signed-by=/etc/apt/keyrings/google.gpg] https://packages.cloud.google.com/apt cloud-sdk main"
- "deb [signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/ubuntu/20.04/prod focal main"
- "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main"
helm_plugins:
- "https://github.com/databus23/helm-diff"
- "https://github.com/jkroepke/helm-secrets"
Expand Down

0 comments on commit b1d9a15

Please sign in to comment.