How can I get augtool (augeas) or a similarly common tool to work with freetds.conf, so I can automate some configuration in a bash install script?
This doesn't seem to work:
augtool print "/files/etc/freetds/freetds.conf"
However, this works (but it uses the inifile lens for some reason, instead of the odbc lens):
augtool print "/files/etc/odbcinst.ini"
What I have tried:
I also followed these instructions to try to associate the odbc lens to freetds.conf:
$ augtool --noload augtool> set /augeas/load/odbc/lens odbc.lns augtool> set /augeas/load/odbc/incl /etc/freetds/freetds.conf augtool> load augtool> print /files/etc/freetds/freetds.conf augtool>
I tried the same with
IniFile in various combinations, but
load failed with
error: Lens not found
Can not find lens IniFile.lns or
Can not find lens inifile.lns.
Errors: There doesn't seem to be any errors mentioning freetds or odbc:
$ augtool print "/augeas//error" | grep freetds $ augtool print "/augeas//error" | grep -i 'freetds\|odbc' $
Versions: I am on Ubuntu 14.04.
augtool --version shows
The freetds.conf contents:
You can see my freetds.conf at http://pastebin.com/Lt6GiXAJ
It is the default freetds.conf, except that I added the following lines in the
tds version = 8.0 client charset = UTF-8