yarn
: Install and configure Yarn
yarn::install
: Install Yarnyarn::repo
: Ensure yarnpkg.com is used as source for package manager
Install and configure Yarn
The following parameters are available in the yarn
class.
Data type: Enum['present','absent']
with present
Yarn is installed
with absent
Yarn is uninstalled
Default value: 'present'
Data type: String[1]
The name of package expected to be installed with package manager provided by your OS or by npm.
Default value: 'yarn'
Data type: Boolean
with true
a new source using yarnpkg.com is added in the package manager of your OS.
with false
do nothing
Default value: handled by hiera data of the module.
Data type: Enum['npm', 'source', 'package']
with source
the source_url
is used to get and install Yarn
with package
the package manager provider by OS is used to install Yarn
with npm
the npm packahe manager is used to install Yarn
Default value: handled by hiera data of the module.
Data type: Stdlib::Absolutepath
path where Yarn sources are installed with install_method
to source
Default value: '/opt'
Data type: Stdlib::Absolutepath
the yarn
command in the path pointing to the installed yarn
with install_method
to source
Default value: '/usr/local/bin/yarn'
Data type: String[1]
the user account on node owner of installed files with install_method
to source
or npm
Default value: 'root'
Data type: Stdlib::HTTPUrl
URL where the sources are downloaded from
Default value: 'https://yarnpkg.com/latest.tar.gz'