def restart_cluster(name):
 ret = {'name': name, 'changes': {}, 'result': None, 'comment': ''}
 if __opts__['test']:
  ret['comment'] = 'Restarting cluster'
  return ret
 __salt__['trafficserver.restart_cluster']()
 ret['result'] = True
 ret['comment'] = 'Restarted cluster'
 return ret

def restart_cluster ( name ) : ret = { 'name' : name , 'changes' : { } , 'result' : None , 'comment' : '' } if __opts__ [ 'test' ] : ret [ 'comment' ] = 'Restarting cluster' return ret __salt__ [ 'trafficserver.restart_cluster' ] ( ) ret [ 'result' ] = True ret [ 'comment' ] = 'Restarted cluster' return ret
restart the traffic_manager process and the traffic_server process on all the nodes in a cluster .