-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
list nodes and groups #537
Comments
To keep this aligned with the behavior of the task and plan show commands it should be:
If the goal is autocompletion should the object be groups or targets?
Latter |
Sounds good :-) |
We now have a command |
Clone the recent repository: https://github.com/puppetlabs/bolt and executed bolt directly in the repository. Played around with the first example of https://puppet.com/docs/bolt/latest/inventory_file.html#inventory-facts-vars-and-features How can i gather the list of group-names? (this is essential for the bash completion) Also other things are working not in a expected way:
|
Can you post a (scrubbed) version of your inventory? Are you using inventory version 1 or 2? |
It's working as expected for me locally with both inventory v1 and v2... |
I am sorry, i accidentally placed the example to Probably it is a good idea to enhance the last line "x targets" with the origin of the targets. How can i query the list of group-names? (this is essential for shell completion) |
There isn't currently, but I think we can have a way to expose that. The SolutionThis should be a new subcommand
Then we'll need to define simple formatted output in both the JSON and human outputters (https://github.com/puppetlabs/bolt/tree/master/lib/bolt/outputter). Testing should include printing nothing when the inventory is empty, and test for inventory versions 1 and 2. |
^^ would be a great addition too. |
(GH-537) Adding support for: bolt group show
To allow convenient inspection of group/node definitions bolt should support a "list" and "show" option for groups and nodes.
This is a precondition to add host and group completion for shell completions like "./resources/bolt_bash_completion.sh"
See also: #495
The text was updated successfully, but these errors were encountered: