Skip to content
This repository was archived by the owner on Aug 21, 2019. It is now read-only.
This repository was archived by the owner on Aug 21, 2019. It is now read-only.

06-downloading-and-running-existing-tasks package task not working #56

@smcclellan

Description

@smcclellan

Here is the help from bolt task show package without specifying the local modulepath:

$ bolt task --nodes all --user root --password root show package

package - Manage and inspect the state of packages

USAGE:
bolt task run --nodes <node-name> package action=<value> name=<value> version=<value> provider=<value>

PARAMETERS:
- action: Enum[install, status, uninstall, upgrade]
    The operation (install, status, uninstall and upgrade) to perform on the package.
- name: String[1]
    The name of the package to be manipulated.
- version: Optional[String[1]]
    Version numbers must match the full version to install, including release if the provider uses a release moniker. Ranges or semver patterns are not accepted except for the gem package provider. For example, to install the bash package from the rpm bash-4.1.2-29.el6.x86_64.rpm, use the string '4.1.2-29.el6'.
- provider: Optional[String[1]]
    The provider to use to manage or inspect the package, defaults to the system package manager. Only used when the 'puppet-agent' feature is available on the target so we can leverage Puppet.

MODULE:
built-in module

Notice it has the parameters. When using the local modulepath, this is the output:

$ bolt task --nodes all --user root --password root --modulepath ./modules show package

package

USAGE:
bolt task run --nodes <node-name> package

MODULE:
/Users/smcclellan/IdeaProjects/bolt/docker/tasks-hands-on-lab/06-downloading-and-running-existing-tasks/modules/package

The parameters are absent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions