This module provides the package task.
This task allows you to install, uninstall, update, and check the status of packages.
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.
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.
For information on the classes and types, see the REFERENCE.md.
For an extensive list of supported operating systems, see metadata.json
This codebase is licensed under the Apache2.0 licensing, however due to the nature of the codebase the open source dependencies may also use a combination of AGPL, BSD-2, BSD-3, GPL2.0, LGPL, MIT and MPL Licensing.
Tests are ran using puppet_litmus. 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.