https://github.com/harobed/ansible-role-sentry-example
Ansible Sentry Role usage example.
https://github.com/harobed/ansible-role-sentry-example
ansible example sentry vagrant
Last synced: 2 months ago
JSON representation
Ansible Sentry Role usage example.
- Host: GitHub
- URL: https://github.com/harobed/ansible-role-sentry-example
- Owner: harobed
- Created: 2019-01-01T17:16:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-23T20:26:40.000Z (over 7 years ago)
- Last Synced: 2025-03-23T05:13:25.581Z (over 1 year ago)
- Topics: ansible, example, sentry, vagrant
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible Role Sentry Example
This repository is a [Ansible Role Sentry](https://github.com/harobed/ansible-role-sentry) usage demonstration.
Use this repository to install Sentry in Ubuntu VM managed by [Vagrant](https://www.vagrantup.com/).
## Prerequisite
- Python 3 (tested with `3.7.1`)
- Virtualenv
- Virtualbox
- Vagrant
- [vagrant-hostmanager](https://github.com/devopsgroup-io/vagrant-hostmanager) plugin
On OSX, execute this command with [brew](https://brew.sh/index_fr.html) to install this prerequisite :
```sh
$ brew install python3
$ pip install virtualenv==16.0.0
$ brew cask install vagrant virtualbox
$ vagrant plugin install vagrant-hostmanager --plugin-version 1.8.9
```
## Install Ansible
```sh
$ virtualenv -p python3 pyenv
$ source pyenv/bin/activate
$ pip install -r requirements.txt
```
## Install Ansible Galaxy Roles
Use [Ansible-Galaxy](https://github.com/harobed/ansible-role-sentry) to install this roles:
- [harobed.sentry](https://github.com/harobed/ansible-role-sentry)
- [harobed.nginx-proxy](https://github.com/harobed/ansible-role-nginx-proxy)
```sh
$ ansible-galaxy install -r roles/requirements.yml
- harobed.sentry (master) was installed successfully
- harobed.nginx-proxy (master) was installed successfully
```
## Start Vagrant host
```sh
$ vagrant up
```
Check that Ansible can ping `myserver` host:
```sh
$ ansible -m ping all
myserver | SUCCESS => {
"changed": false,
"ping": "pong"
}
```
## Install Sentry
```sh
$ ansible-playbook playbooks/site.yml
```
Go to http://sentry.example.com
Default login are:
- username: admin@example.com
- password: password
## Configure dkim
Use `fetch/dkim.public` content to configure your DNS, more information see [docker-versatile-postfix DKIM section](https://github.com/MarvAmBass/docker-versatile-postfix/#dkim).
## Uninstall Sentry
```sh
$ ansible-playbook playbooks/site.yml --tags sentry --extra-vars "sentry_uninstall=true"
```
## Ansible Linter checking
```sh
$ ansible-lint -v playbooks/site.yml
```