is there a way to set config file format to hcl or json. other than the file extension ?
Hi @lounanealerts,
You can use the -config-format
string to do this. Here’s a description of the parameter from the output of consul agent -help
.
$ consul agent -help
...
-config-format=<string>
Config files are in this format irrespective of their extension.
Must be 'hcl' or 'json'
...
Here’s an example of how you can use this command.
$ consul agent -config-file=config.txt -config-format=hcl