Generally speaking, high temperature RTV and, in some cases, a resin-based adhesive called mill-pac. The first few pages of the installation manual for any direct vent gas fireplace will list the additional items required for installation.