GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
With this branch two new commands are added:
LittleChef: Configuration Management using Chef Solo
list_nodes_with_tag Show all nodes which have assigned a given tag
nodes_with_tag Sets a list of nodes that have the given tag assigned and calls node()
The idea is to be able list and deploy nodes with a certain tag, similar to how the nodes_with_role selector is working.
Sample calls would be like
% fix list_nodes_with_tag:boo
% fix nodes_with_tag:baz
Also an additional commandline switch called --include-guests is introduced. This switch is useful if you have the convention that all tags for the host are virtually also tags for the host's guests. In this case fix is not only applied on the host with a tag, but also on all of the host's guests.
I don't consider this branch done yet, but would like to get some input on the general concept first (esp. from @tobami). Missing bits are:
Any initial comments?
first version of a command to list all nodes with a certain tag
get_nodes_with_tag: ignore guests which are in a different chef env than
implemented 'nodes_with_tag' command
Added 'nodes_with_tag' to the list of allowed commandes to execute the
test_command: expecting timeouts in a couple of tests instead of conn…
fixed docstring for 'list_nodes_with_tag'
Looks awesome. The "include-guests" bit is kind of a new concept in LittleChef, but because it is opt-in it is alright.
Only the fix for the command tests don't look right. They fail depending on your DNS. What is needed is mocking or localhost DNS settings for tests
runner.py: default follow_symlink to False
Only the README docu entry is missing
cherry-picking commits and creating new pr