Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/hedgedoc/apt_config.pp
# APT configuration for hedgedoc | # APT configuration for hedgedoc | ||||
class profile::hedgedoc::apt_config { | class profile::hedgedoc::apt_config { | ||||
include profile::nodejs::apt_config | |||||
$packages = [ | $packages = [ | ||||
'npm', 'yarn', 'node-gyp' | 'npm', 'yarn', 'node-gyp', 'nodejs' | ||||
] | ] | ||||
$keyid = lookup('yarn::apt_config::keyid') | $keyid = lookup('yarn::apt_config::keyid') | ||||
$key = lookup('yarn::apt_config::key') | $key = lookup('yarn::apt_config::key') | ||||
apt::source { 'yarn': | apt::source { 'yarn': | ||||
location => "https://dl.yarnpkg.com/debian/", | location => "https://dl.yarnpkg.com/debian/", | ||||
release => 'stable', | release => 'stable', | ||||
repos => 'main', | repos => 'main', | ||||
key => { | key => { | ||||
id => $keyid, | id => $keyid, | ||||
content => $key, | content => $key, | ||||
}, | }, | ||||
} -> | } | ||||
package { $packages: | package { $packages: | ||||
ensure => present, | ensure => latest, | ||||
notify => Archive['hedgedoc'], | notify => Service['hedgedoc'], | ||||
} | } | ||||
} | } |