def METHOD_NAME(self):
    """
    Create the temp file and master.d directory
    """
    self.job_dir = os.path.join(self.master_opts["cachedir"], "jobs")
    self.hash_type = self.master_opts["hash_type"]
    self.master_d_dir = os.path.join(self.config_dir, "master.d")
    try:
        os.makedirs(self.master_d_dir)
    except OSError as exc:
        if exc.errno != errno.EEXIST:
            raise
    self.conf = tempfile.NamedTemporaryFile(
        mode="w",
        suffix=".conf",
        dir=self.master_d_dir,
        delete=False,
    )