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

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

Open
smcclellan opened this issue Mar 8, 2019 · 2 comments
Open

Comments

@smcclellan
Copy link

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.

@smcclellan
Copy link
Author

smcclellan commented Mar 9, 2019

I'm not sure whether the path forward is updating modules/package/tasks/init.rb or deleting it.

@smcclellan
Copy link
Author

smcclellan commented Mar 9, 2019

I also notice modules/service/tasks/init.rb isn't referenced in the README.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant