{"id":17006115,"url":"https://github.com/duologic/ansible-role-sentry","last_synced_at":"2026-03-16T22:01:44.886Z","repository":{"id":53572631,"uuid":"168178413","full_name":"Duologic/ansible-role-sentry","owner":"Duologic","description":"Configure and install Sentry with Python.","archived":false,"fork":false,"pushed_at":"2021-03-23T17:05:09.000Z","size":24,"stargazers_count":1,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T19:37:49.649Z","etag":null,"topics":["ansible-role","sentry"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Duologic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-29T15:31:09.000Z","updated_at":"2021-03-23T17:05:12.000Z","dependencies_parsed_at":"2022-09-11T23:01:38.403Z","dependency_job_id":null,"html_url":"https://github.com/Duologic/ansible-role-sentry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Duologic/ansible-role-sentry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Duologic%2Fansible-role-sentry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Duologic%2Fansible-role-sentry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Duologic%2Fansible-role-sentry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Duologic%2Fansible-role-sentry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Duologic","download_url":"https://codeload.github.com/Duologic/ansible-role-sentry/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Duologic%2Fansible-role-sentry/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266382120,"owners_count":23920638,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible-role","sentry"],"created_at":"2024-10-14T05:05:02.297Z","updated_at":"2025-12-28T02:25:25.568Z","avatar_url":"https://github.com/Duologic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Duologic.sentry\n===============\n\n[![Build Status](https://travis-ci.org/Duologic/ansible-role-sentry.svg?branch=master)](https://travis-ci.org/Duologic/ansible-role-sentry)\n\nThis role configures and installs Sentry with Python.\n\nRequirements\n-----------\n\nYou probaly want Postgresql and Redis to run Sentry, see Example Playbook\n\nNOTE: Provide the machine with enough memory (2GB+) as Sentry upgrade has a memory leak.\n(see [getsentry/sentry#8862](https://github.com/getsentry/sentry/issues/8862))\n\nRole Variables\n--------------\n\nYou probably want to generate a strong secret key:\n\n    sentry_secret_key: 'UNSAFE'\n\nYou can install extra packages with pip in the virtualenv, for example the plugin bundle:\n\n    sentry_extra_pip_packages:\n      - 'sentry-plugins==9.0.0'\n\nThe extra packages/plugins might need some extra configuration:\n\n    sentry_extra_conf_py: |\n        GITHUB_APP_ID = 'GitHub Application Client ID'\n        GITHUB_API_SECRET = 'GitHub Application Client Secret'\n        GITHUB_EXTENDED_PERMISSIONS = ['repo']\n\nYou might want to set whether to run [cleanup](https://docs.sentry.io/server/cli/cleanup/)\nand the number of days to keep data for by setting:\n```yml\nsentry_schedule_cleanup: true # whether to schedule a cleanup. Default is true\nsentry_cleanup_days: 30 # the number of days to keep old data\n```\nNote that this does not delete metadata such as orgnanization and project configurations.\n\n\nSee [defaults/main.yml](defaults/main.yml) for more configuration options.\n\nExample Playbook\n----------------\n\n```\n---\n- become: true\n  hosts: servers\n  tasks:\n    - name: Enable EPEL repo on EL for Redis role\n      yum: pkg=epel-release state=present\n      when: ansible_os_family == 'RedHat'\n    - import_role:\n        name: geerlingguy.redis\n    - import_role:\n        name: Duologic.postgresql_repository\n      vars:\n        postgres_repo_version: '9.5'\n    - import_role:\n        name: geerlingguy.postgresql\n      vars:\n        postgresql_hba_entries:\n            - {type: local, database: sentry, user: sentry, auth_method: trust}\n            - {type: local, database: all, user: postgres, auth_method: peer}\n        postgresql_databases:\n            - name: sentry\n        postgresql_users:\n            - name: sentry\n              db: sentry\n              role_attr_flags: SUPERUSER\n    - name: Flush handlers so services are restarted before Sentry installation\n      meta: flush_handlers\n    - import_role:\n        name: sentry\n      vars:\n        sentry_db_user: 'sentry'\n        sentry_secret_key: 'SAFE'\n        sentry_extra_pip_packages:\n            - 'sentry-plugins==9.0.0'\n```\n\nSupported distributions\n-----------------------\n\nThis project is tested on CentOS 7, Debian 9 and Ubuntu 18.04.\n\nKnown issues with other distributions:\n\n- CentOS 6: python2.7 not available\n- Ubuntu 16.04: redis-server not available\n- Debian 8: issues with cryptography (and possibly setuptools)\n\nSee this [build](https://travis-ci.org/Duologic/ansible-role-sentry/builds/487380995).\n\nTesting\n-------\nCreate a python [virtualenv](https://docs.python-guide.org/dev/virtualenvs/) and run\n```sh\npip install molecule docker-py\nmolecule test\n```\n\nLicense\n-------\n\nMIT\n\nAuthor Information\n------------------\n\nJeroen Op 't Eynde, jeroen@simplistic.be\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduologic%2Fansible-role-sentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduologic%2Fansible-role-sentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduologic%2Fansible-role-sentry/lists"}