package

supported
pdk
tasks
Tasks that manipulate a package

Puppet

puppetlabs

110,779 downloads

3,186 latest version

4.0 quality score

Version information

  • 2.0.0 (latest)
  • 1.4.0
  • 1.3.0
  • 1.2.0
  • 1.1.0
  • 1.0.0
  • 0.7.0
  • 0.6.0
  • 0.5.0
  • 0.4.1
  • 0.3.0
  • 0.2.0
  • 0.1.5
  • 0.1.4 (deleted)
released Mar 2nd 2021
This version is compatible with:
  • Puppet Enterprise 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x
  • Puppet >= 6.0.0 < 8.0.0
  • Debian
    ,
    CentOS
    ,
    OracleLinux
    ,
    RedHat
    ,
    Ubuntu
    ,
    windows
Tasks:
  • package

Start using this module

Documentation

puppetlabs/package — version 2.0.0 Mar 2nd 2021

package

Table of Contents

  1. Overview
  2. Module Description
  3. Setup
  4. Usage
  5. Reference
  6. Limitations
  7. Development

Overview

This module provides the package task.

Description

This task allows you to install, uninstall, update, and check the status of packages.

Setup

Requirements

This module is compatible with Puppet Enterprise and Puppet Bolt.

  • To run tasks with Puppet Enterprise, PE 2018.1 or later must be installed on the machine from which you are running task commands. Machines receiving task requests must be Puppet agents.

  • To run tasks with Puppet Bolt, Bolt 1.0 or later must be installed on the machine from which you are running task commands. Machines receiving task requests must have SSH or WinRM services enabled.

Usage

To view the available actions and parameters, on the command line, run puppet task show package or see the package module page on the Forge. For a complete list of optional package providers that are supported, see the Puppet Types documentation.

To run a package task, use the task command, specifying the action and the name of the package. To show help for the task CLI, run puppet task run --help or bolt task run --help

  • With PE on the command line, run puppet task run package action=<ACTION> name=<PACKAGE_NAME>.
  • With Bolt on the command line, run bolt task run package action=<ACTION> name=<PACKAGE_NAME>.

For example, to check whether the vim package is present or absent, run:

  • With PE, run puppet task run package action=status name=vim --nodes neptune.
  • With Bolt, run bolt task run package action=status name=vim --nodes neptune --modulepath ~/modules.

You can also run tasks in the PE console. See PE task documentation for complete information.

Reference

For information on the classes and types, see the REFERENCE.md.

Limitations

To run acceptance tests against Windows machines, ensure that the BEAKER_password environment variable has been set to the password of the Administrator user of the target machine.

For an extensive list of supported operating systems, see metadata.json

Development

We are experimenting with a new tool for running acceptance tests. Its name is puppet_litmus this replaces beaker as the test runner. To run the acceptance tests follow the instructions from this point here.

Puppet modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. To contribute to Puppet projects, see our module contribution guide.