No psql password set in /etc/default/lora-app-server when using ansible
frisellcpl opened this issue · 6 comments
Not really sure if this is expected behaviour or not, but the database password specified in loraserver_hosts.yml was not provisioned to the lora-app-server conf file. Instead a generic "verysecret" default was set.
Did you use Ansible?
Yes!
Then you need to update the host_files/vagrant.yml
, see https://github.com/brocaar/loraserver-setup/blob/master/host_vars/vagrant.yml.
Ah ok, the documentation indicates that vagrant is only used for local deployment. What about the db password specified in group vars?
Sorry, I was a bit too quick with replying, I meant did you use Vagrant ;-) Don't forget that you need to change the password also at this location https://github.com/brocaar/loraserver-setup/blob/master/group_vars/loraserver_hosts.example.yml#L44.
Yes, didn't notice the last line :) Maybe a nice improvement would be to construct the POSTGRES_DSN value from the other values to remove some duplication? Anyhow, thanks for the help!