Merge "Modernize ensure-nodejs"
This commit is contained in:
commit
7e54b91d61
@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
node_version: 6
|
|
@ -25,6 +25,17 @@
|
|||||||
repositories_list:
|
repositories_list:
|
||||||
- repo: deb-src https://deb.nodesource.com/node_{{ node_version }}.x {{ ansible_distribution_release }} main
|
- repo: deb-src https://deb.nodesource.com/node_{{ node_version }}.x {{ ansible_distribution_release }} main
|
||||||
- repo: deb https://deb.nodesource.com/node_{{ node_version }}.x {{ ansible_distribution_release }} main
|
- repo: deb https://deb.nodesource.com/node_{{ node_version }}.x {{ ansible_distribution_release }} main
|
||||||
|
when: node_version | int < 16
|
||||||
|
|
||||||
|
- name: Add all repositories
|
||||||
|
include_role:
|
||||||
|
name: ensure-package-repositories
|
||||||
|
vars:
|
||||||
|
repositories_keys:
|
||||||
|
- url: https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key
|
||||||
|
repositories_list:
|
||||||
|
- repo: deb https://deb.nodesource.com/node_{{ node_version }}.x nodistro main
|
||||||
|
when: node_version | int >= 16
|
||||||
|
|
||||||
# Use template so that we can easily update this in the future to be able to
|
# Use template so that we can easily update this in the future to be able to
|
||||||
# use a mirror location.
|
# use a mirror location.
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
run: test-playbooks/simple-role-test.yaml
|
run: test-playbooks/simple-role-test.yaml
|
||||||
vars:
|
vars:
|
||||||
role_name: ensure-nodejs
|
role_name: ensure-nodejs
|
||||||
|
node_version: 20
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: zuul-jobs-test-ensure-yarn
|
name: zuul-jobs-test-ensure-yarn
|
||||||
@ -18,6 +19,7 @@
|
|||||||
run: test-playbooks/simple-role-test.yaml
|
run: test-playbooks/simple-role-test.yaml
|
||||||
vars:
|
vars:
|
||||||
role_name: ensure-yarn
|
role_name: ensure-yarn
|
||||||
|
node_version: 20
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: zuul-jobs-test-fetch-javascript-tarball
|
name: zuul-jobs-test-fetch-javascript-tarball
|
||||||
|
@ -327,7 +327,7 @@
|
|||||||
Command to pass to npm.
|
Command to pass to npm.
|
||||||
|
|
||||||
.. zuul:jobvar:: node_version
|
.. zuul:jobvar:: node_version
|
||||||
:default: 6
|
:default: 14
|
||||||
|
|
||||||
The version of Node to use.
|
The version of Node to use.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user