def list_nodes_with_role(role): """Show all nodes which have asigned a given role""" lib.print_nodes(lib.get_nodes_with_role(role, env.chef_environment))
def list_nodes(): """List all configured nodes""" lib.print_nodes(lib.get_nodes(env.chef_environment))
def list_nodes_detailed(): """Show a detailed list of all nodes""" lib.print_nodes(lib.get_nodes(env.chef_environment), detailed=True)
def list_nodes_with_tag(tag): """Show all nodes which have assigned a given tag""" lib.print_nodes(lib.get_nodes_with_tag(tag, env.chef_environment, littlechef.include_guests))
def list_nodes_with_tag(tag): """Show all nodes which have assigned a given tag""" lib.print_nodes( lib.get_nodes_with_tag(tag, env.chef_environment, littlechef.include_guests))