nodejs_repository

May 19, 2026 ยท View on GitHub

Configures NodeSource package repositories.

Actions

ActionDescription
:createCreates the NodeSource repository. Default.
:removeRemoves the NodeSource repository and managed APT keyring.

Properties

PropertyTypeDefaultDescription
repo_nameStringname propertyRepository name.
node_majorString, Integer'24'Node.js major version used in repository URLs.
apt_uriStringgeneratedAPT repository URI override.
apt_distributionString'nodistro'APT distribution.
apt_componentsArray['main']APT components.
apt_keyStringNodeSource DEB key URLAPT signing key URL.
apt_keyringString'/etc/apt/keyrings/nodesource.asc'Managed APT keyring path.
apt_pin_priorityString'600'APT preference priority for NodeSource.
yum_baseurlStringgeneratedYUM/DNF base URL override.
yum_gpgkeyStringNodeSource RPM key URLRPM signing key URL.
yum_priorityString'9'YUM repository priority.
enabledtrue, falsetrueEnables the YUM/DNF repository.
gpgchecktrue, falsetrueEnables package GPG checks.

Examples

nodejs_repository 'nodesource' do
  node_major 24
end