According to the agreement, Canadian coach Hartley will stay on as the head coach of the Latvian team for the next five years, or until after the 2022 Beijing Olympics.
Hartley became the head coach of the Latvian team last year, and signed a 1+1 agreement with the LHF. He led Latvia to a tenth place finish at this year's Ice Hockey World Championships, and significantly improved the team's performances.
The 56-year-old Hartley has coached three National Hockey League (NHL) clubs: Colorado Avalanche from 1998 to 2003, Atlanta Thrashers from 2003 to 2008, and Calgari Flames from 2012 to 2015.
In the 2011/2012 season, Hartley was the head coach of the Swiss hockey club Zurich ZSC Lions, helping the club win the Swiss Championship.
With Hartley as the head coach, the Avalanche won the Stanley Cup in 2001.
In June 2015, Hartley won the Jack Adams Award as the NHL's coach of the year.