Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
Jérémy Lecour | 605e12b4e8 |
28
courier/.kitchen.yml
Normal file
28
courier/.kitchen.yml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
---
|
||||||
|
driver:
|
||||||
|
name: docker
|
||||||
|
privileged: true
|
||||||
|
use_sudo: false
|
||||||
|
|
||||||
|
provisioner:
|
||||||
|
name: ansible_playbook
|
||||||
|
hosts: test-kitchen
|
||||||
|
roles_path: ../
|
||||||
|
ansible_verbose: true
|
||||||
|
require_ansible_source: false
|
||||||
|
require_chef_for_busser: false
|
||||||
|
idempotency_test: true
|
||||||
|
|
||||||
|
platforms:
|
||||||
|
- name: debian
|
||||||
|
driver_config:
|
||||||
|
image: evolix/ansible:2.2.1
|
||||||
|
|
||||||
|
suites:
|
||||||
|
- name: default
|
||||||
|
provisioner:
|
||||||
|
name: ansible_playbook
|
||||||
|
playbook: ./tests/test.yml
|
||||||
|
|
||||||
|
transport:
|
||||||
|
max_ssh_sessions: 6
|
11
courier/README.md
Normal file
11
courier/README.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# Courier
|
||||||
|
|
||||||
|
Installation and basic configuration of courier.
|
||||||
|
|
||||||
|
## Tasks
|
||||||
|
|
||||||
|
Minimal configuration is in `tasks/main.yml`
|
||||||
|
|
||||||
|
## Available variables
|
||||||
|
|
||||||
|
The full list of variables (with default values) can be found in `defaults/main.yml`.
|
1
courier/defaults/main.yml
Normal file
1
courier/defaults/main.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
---
|
25
courier/handlers/main.yml
Normal file
25
courier/handlers/main.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
---
|
||||||
|
- name: restart courier-authdaemon
|
||||||
|
service:
|
||||||
|
name: courier-authdaemon
|
||||||
|
state: restarted
|
||||||
|
- name: restart courier-imap
|
||||||
|
service:
|
||||||
|
name: courier-imap
|
||||||
|
state: restarted
|
||||||
|
- name: restart courier-imap-ssl
|
||||||
|
service:
|
||||||
|
name: courier-imap-ssl
|
||||||
|
state: restarted
|
||||||
|
- name: restart courier-ldap
|
||||||
|
service:
|
||||||
|
name: courier-ldap
|
||||||
|
state: restarted
|
||||||
|
- name: restart courier-pop
|
||||||
|
service:
|
||||||
|
name: courier-pop
|
||||||
|
state: restarted
|
||||||
|
- name: restart courier-pop-ssl
|
||||||
|
service:
|
||||||
|
name: courier-pop-ssl
|
||||||
|
state: restarted
|
19
courier/meta/main.yml
Normal file
19
courier/meta/main.yml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
galaxy_info:
|
||||||
|
author: Evolix
|
||||||
|
description: Installation and basic configuration of courier.
|
||||||
|
|
||||||
|
issue_tracker_url: https://forge.evolix.org/projects/ansible-roles/issues
|
||||||
|
|
||||||
|
license: GPLv2
|
||||||
|
|
||||||
|
min_ansible_version: 2.2
|
||||||
|
|
||||||
|
platforms:
|
||||||
|
- name: Debian
|
||||||
|
versions:
|
||||||
|
- jessie
|
||||||
|
|
||||||
|
dependencies: []
|
||||||
|
# List your role dependencies here, one per line.
|
||||||
|
# Be sure to remove the '[]' above if you add dependencies
|
||||||
|
# to this list.
|
17
courier/tasks/main.yml
Normal file
17
courier/tasks/main.yml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
- name: ensure packages are installed
|
||||||
|
apt:
|
||||||
|
name: '{{ item }}'
|
||||||
|
state: present
|
||||||
|
with_items:
|
||||||
|
- courier-authdaemon
|
||||||
|
- courier-authlib
|
||||||
|
- courier-authlib-ldap
|
||||||
|
- courier-authlib-userdb
|
||||||
|
- courier-base
|
||||||
|
- courier-imap
|
||||||
|
- courier-imap-ssl
|
||||||
|
- courier-ldap
|
||||||
|
- courier-pop
|
||||||
|
- courier-pop-ssl
|
||||||
|
- courier-ssl
|
||||||
|
|
4
courier/tests/test.yml
Normal file
4
courier/tests/test.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
- hosts: test-kitchen
|
||||||
|
roles:
|
||||||
|
- role: courier
|
Loading…
Reference in a new issue