| I would like to have an inventory command to interact with the inventory file, puppetdb or other place bolt retrieves the list of nodes from. This would allow me to see what is in the inventory before running and also write bootstrap scripts outside of bolt This command would prevent me from having to always parse out the inventory file to accomplish the same thing. Example:
#!/usr/bin/env bash |
|
nodes=$(bolt inventory --nodes ubuntu) |
for node in $nodes; do |
ssh-copy-id ethos@${nodes} |
done |
|
|