quattor / aquilon

Configuration Management Database (3rd Generation)
www.quattor.org
Apache License 2.0
15 stars 20 forks source link

Autocompletion of datawarehouse values not working outside MS #38

Open samary opened 8 years ago

samary commented 8 years ago

When using autocompletion of some values (eg. aq add_cluster --cluster [TAB]): it complains about not finding sqlite3 : -bash: /ms/dist/fsf/PROJ/sqlite/3.8.2-1/bin/sqlite3: No such file or directory It is hardcoded in the autocompletion template (https://github.com/quattor/aquilon/blob/upstream/etc/templates/bash.tmpl#L22). We should disable this completion if the DB is not found.

stdweird commented 7 years ago

We used to have the following /etc/profile.d/aqd.sh to setup he aquilon tabcompleiton and some other stuff. the relevant section starts after the Keep these last part requires psql working, so use eg krb based read access or somethign even more primitive. some of the qureis might be sped up by views. aqd.sh.txt

jrha commented 7 years ago

Discussed at March 2017 workshop, @gombasg pointed out that the code could do with serious modernisation anywa,y, so contributions would be welcome.