The governing body of each city and town in the state of Minnesota, however organized, may by resolution or ordinance provide for the granting of vacations, with or without pay, to all its regularly employed employees or officers, upon such terms and under such conditions as said governing body may determine, and subject to such requirements as to length of service with such municipality as said g