Overview

Key Concepts

General

Account

Design

Transition

Operation

Edit this page on GitHub

Home > user > design > Chocolatey Package Component

Chocolatey Package Component

The chocolatey-package component is used to install additional software artifacts on computes from Chocolatey Repos. Chocolatey is a machine level package manager that is built on top of nuget command line and the nuget infrastructure.

Besides the global configuration available for any component such as Name, you can configure the following attributes:

Repository:

Repository URL: is used to specify the repo used to store artifacts.
Repository: is used to specify the specific repo name where the artifacts are located that you want to install.

Authentication:

Username and Password allow you to authenticate into your above defined repository.

Artifact:

Identifier: is used to specify the specific artifact name to install. The identifier can be a URL, S3 Path, local path or Maven identier of the artifact package to download.
Version: is used to specify the version of the artifact to install. Can be a specific version or “latest” to pull the most recent version.
Checksum: is used to specify the SHA256 checksum of the artifact package.
Path: is used to specify the repository path prefix.

Destination:

Install Directory: is used to specify the directory path where the artifact will be deployed to and versions kept.
Variables are typically used here to manage commonly used information in a central place.
Deploy as user: is used to specify the system user used to deploy the application.
Deploy as group: is used to specify the system group to run the deployment as.
Environment Variables: is used to specify any variables to be present during the deployment.
Persistent Directories: is used to list directories to be persisted across code updates (ex. logs, tmp, etc.)
Expand: is used to expand compressed files such as .tgz, tar.gz, .zip, .tar, .jar and .war.

Stages:

Configure: is used to specify any commands to be executed to configure the artifact package.
Migrate: is used to specify any commands to be executed during the migration stage.
Restart: is used to specify any commands to be executed during a restart.