#NEWLINE# def print_host_summary( all_hosts , host ) : #NEWLINE# #INDENT# click . echo ( ( '- %s' % host . connect_to ) ) #NEWLINE# if host . master : #NEWLINE# #INDENT# click . echo ( '  - OpenShift Master' ) #NEWLINE# #UNINDENT# if host . node : #NEWLINE# #INDENT# if host . is_dedicated_node ( ) : #NEWLINE# #INDENT# click . echo ( '  - OpenShift Node (Dedicated)' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if host . is_schedulable_node ( all_hosts ) : #NEWLINE# #INDENT# click . echo ( '  - OpenShift Node' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# click . echo ( '  - OpenShift Node (Unscheduled)' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if host . master_lb : #NEWLINE# #INDENT# if host . preconfigured : #NEWLINE# #INDENT# click . echo ( '  - Load Balancer (Preconfigured)' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# click . echo ( '  - Load Balancer (HAProxy)' ) #NEWLINE# #UNINDENT# #UNINDENT# if host . master : #NEWLINE# #INDENT# if host . is_etcd_member ( all_hosts ) : #NEWLINE# #INDENT# click . echo ( '  - Etcd Member' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# click . echo ( '  - Etcd (Embedded)' ) #NEWLINE# #UNINDENT# #UNINDENT# if all_hosts . storage : #NEWLINE# #INDENT# click . echo ( '  - Storage' )