Fix systemd launch of timesheetsdb
- Add default environment file with postgres config
- Add full path to npm (makes ubuntu happy)
- Call handlers appropriately when systemd unit files are modified
- Add very basic test
Change-Id: I5b1dfab78e449492be193bccfe470813f3028195
diff --git a/templates/default.timesheetsdb.j2 b/templates/default.timesheetsdb.j2
new file mode 100644
index 0000000..749062c
--- /dev/null
+++ b/templates/default.timesheetsdb.j2
@@ -0,0 +1,10 @@
+{#
+SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
+SPDX-License-Identifier: Apache-2.0
+#}
+# /etc/default/timesheetsdb
+# {{ ansible_managed }}
+DATABASE_NAME = {{ timesheets_pg_db }}
+DATABASE_PORT = {{ timesheets_pg_db_port }}
+DATABASE_USER = {{ timesheets_pg_db_username }}
+DATABASE_PASS = {{ timesheets_pg_db_password }}