notification_proxy: Add heartbeat and startup monitoring
This commit is contained in:
parent
bb79cce197
commit
6c2bf701f6
4 changed files with 138 additions and 38 deletions
|
|
@ -1,4 +1,8 @@
|
|||
---
|
||||
- name: Set local facts
|
||||
set_fact:
|
||||
notification_proxy_sqlite_dbfile: /var/lib/notification-proxy/db.sqlite3
|
||||
|
||||
- name: Create notification proxy worker user and group
|
||||
user:
|
||||
name: uwsgi-notification-proxy
|
||||
|
|
@ -14,7 +18,7 @@
|
|||
state: directory
|
||||
owner: uwsgi-notification-proxy
|
||||
group: uwsgi
|
||||
mode: 0550
|
||||
mode: 0750
|
||||
|
||||
- name: Copy webapp sources
|
||||
copy:
|
||||
|
|
@ -46,3 +50,12 @@
|
|||
name: uwsgi-app@notification-proxy.socket
|
||||
enabled: yes
|
||||
|
||||
- name: Create sqlite db file
|
||||
file:
|
||||
path: "{{notification_proxy_sqlite_dbfile}}"
|
||||
owner: uwsgi-notification-proxy
|
||||
group: uwsgi
|
||||
mode: 0660
|
||||
state: touch
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue