Definition of quartermaster

What does the word quartermaster mean?