Skip to content
Snippets Groups Projects
Commit ce6ed0de authored by Lars Beckers's avatar Lars Beckers
Browse files

sentry: fix deployment according to software changes

parent 55a0508a
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,8 @@
- libldap2-dev
- libssl-dev
- python-ldap
- libxmlsec1-dev
- pkg-config
state: present
tags:
- sentry
......@@ -106,7 +108,7 @@
- name: ensure the user may login
lineinfile:
dest: /etc/postgresql/9.6/main/pg_hba.conf
dest: /etc/postgresql/11/main/pg_hba.conf
# yamllint disable-line rule:line-length
insertafter: "host all all 127.0.0.1/32 md5"
# yamllint disable-line rule:line-length
......@@ -124,14 +126,13 @@
- name: ensure we have a virtualenv and all the packages # noqa 403
pip:
name: "{{item}}"
virtualenv: "{{sentry_root_dir}}"
virtualenv_python: python2
state: latest
with_items:
name:
- sentry
- sentry-ldap-auth
- sentry-plugins
virtualenv: "{{sentry_root_dir}}"
virtualenv_python: python2
state: latest
notify:
- upgrade sentry database
- restart sentry
......@@ -149,10 +150,34 @@
- webservices
- monitoring
- name: ensure sentry has a config dir
file:
path: "{{sentry_root_dir}}/.sentry"
state: directory
owner: sentry
group: sentry
mode: '0640'
tags:
- sentry
- webservices
- monitoring
- name: ensure one can see that conf dir
file:
src: "{{sentry_root_dir}}/.sentry"
dest: "{{sentry_root_dir}}/conf"
state: link
owner: sentry
group: sentry
tags:
- sentry
- webservices
- monitoring
- name: ensure sentry is configured
template:
src: "{{item}}.j2"
dest: "{{sentry_root_dir}}"
dest: "{{sentry_root_dir}}/.sentry/{{item}}"
owner: root
group: "{{sentry_group}}"
mode: '0640'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment