def __init__(self, output_file: Optional[str]) -> None:
        """Set up the output file (if passed), helper vars and the minimal config structure.

        :param output_file: full path to the output file to be used.
        """
        self.output_file = output_file
        self.pg_major = 0
        self.config = self.get_template_config()

        self.generate()
Set up the output file (if passed), helper vars and the minimal config structure.

        :param output_file: full path to the output file to be used.
        
patroni/config_generator.py