mirror of https://github.com/lucascbeyeler/zimbra
Compare commits
21 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
a283e67fdd | |
|
|
e15bdb4af2 | |
|
|
11a626355e | |
|
|
6b02ae84f9 | |
|
|
4e39e65ac1 | |
|
|
774a027d8f | |
|
|
02dc7b81cc | |
|
|
a4a5c710f3 | |
|
|
f6cab03c39 | |
|
|
07fdf94835 | |
|
|
df5f2f64f0 | |
|
|
b584847a3d | |
|
|
173dc5d2b2 | |
|
|
ae30094f38 | |
|
|
52cde71718 | |
|
|
a220d76add | |
|
|
703aa09a6b | |
|
|
5b1dc256f0 | |
|
|
68eb3d980f | |
|
|
5083afead5 | |
|
|
3bda4ac1e6 |
|
|
@ -0,0 +1,3 @@
|
||||||
|
# These are supported funding model platforms
|
||||||
|
|
||||||
|
github: [lucascbeyeler]
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
OLD
|
OLD
|
||||||
|
.idea
|
||||||
|
|
@ -4,15 +4,15 @@ Zimbra
|
||||||
Non-Official ansible role to install and configure Zimbra Collaboration Open Source Edition on Red Hat, CentOS and Ubuntu Server.
|
Non-Official ansible role to install and configure Zimbra Collaboration Open Source Edition on Red Hat, CentOS and Ubuntu Server.
|
||||||
|
|
||||||
[](https://travis-ci.org/lucascbeyeler/zimbra)
|
[](https://travis-ci.org/lucascbeyeler/zimbra)
|
||||||
[](https://www.zimbra.com/downloads/zimbra-collaboration-open-source/)
|
[](https://www.zimbra.com/downloads/zimbra-collaboration-open-source/)
|
||||||

|

|
||||||

|

|
||||||
[](https://www.ansible.com/)
|
[](https://www.ansible.com/)
|
||||||
|
|
||||||
Requirements
|
Requirements
|
||||||
------------
|
------------
|
||||||
|
|
||||||
* [Ansible](https://github.com/ansible/ansible) 2.4.2.0 or high.
|
* [Ansible](https://github.com/ansible/ansible) 2.9.6 or high.
|
||||||
|
|
||||||
Install
|
Install
|
||||||
--------------
|
--------------
|
||||||
|
|
@ -53,6 +53,7 @@ Role Variables
|
||||||
* **zmlogologin:** Inform the path for your logo (Login Screen) - don't inform and no image will be applied;
|
* **zmlogologin:** Inform the path for your logo (Login Screen) - don't inform and no image will be applied;
|
||||||
* **zmlogoapp:** Inform the path for your logo (Application Screen) - don't inform and no image will be applied;
|
* **zmlogoapp:** Inform the path for your logo (Application Screen) - don't inform and no image will be applied;
|
||||||
* **timezone:** inform the timezone the playbook should set in your server;
|
* **timezone:** inform the timezone the playbook should set in your server;
|
||||||
|
* **zimbra_version:** Inform which version of Zimbra you want to install. Default: 8.8.15
|
||||||
|
|
||||||
Service Variables - Inform "y" or "n"
|
Service Variables - Inform "y" or "n"
|
||||||
--------------
|
--------------
|
||||||
|
|
|
||||||
|
|
@ -9,3 +9,39 @@ ubuntu:
|
||||||
centos:
|
centos:
|
||||||
- pyzor
|
- pyzor
|
||||||
- perl-Razor-Agent
|
- perl-Razor-Agent
|
||||||
|
|
||||||
|
#
|
||||||
|
# Products to be installed
|
||||||
|
################################################################################
|
||||||
|
zimbra_ldap: y
|
||||||
|
zimbra_logger: y
|
||||||
|
zimbra_mta: y
|
||||||
|
zimbra_dnscache: n
|
||||||
|
zimbra_snmp: n
|
||||||
|
zimbra_store: y
|
||||||
|
zimbra_apache: y
|
||||||
|
zimbra_spell: y
|
||||||
|
zimbra_memcached: y
|
||||||
|
zimbra_proxy: y
|
||||||
|
zimbra_chat: n
|
||||||
|
zimbra_drive: n
|
||||||
|
zimbra_imapd: n
|
||||||
|
zimbra_policyd: n
|
||||||
|
|
||||||
|
#
|
||||||
|
# Zimbra configuration
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
hostname: "localhost"
|
||||||
|
domain: "localdomain"
|
||||||
|
zmpasswd: "!23Change"
|
||||||
|
zmnetwork: "192.168.200.0/8"
|
||||||
|
timezone: UTC
|
||||||
|
#hosts_lines:
|
||||||
|
# - "198.162.1.3 {{ hostname }}.{{ domain }} {{ hostname }}"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Zimbra configuration
|
||||||
|
################################################################################
|
||||||
|
zimbra_version: 8.8.15
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,19 +3,19 @@ galaxy_info:
|
||||||
description: Ansible role to install and configure Zimbra Collaboration Open Source Edition
|
description: Ansible role to install and configure Zimbra Collaboration Open Source Edition
|
||||||
company: Beyeler
|
company: Beyeler
|
||||||
license: GPLv3
|
license: GPLv3
|
||||||
min_ansible_version: 2.4
|
min_ansible_version: 2.9.6
|
||||||
github_branch: master
|
github_branch: master
|
||||||
platforms:
|
platforms:
|
||||||
- name: Ubuntu
|
- name: Ubuntu
|
||||||
versions:
|
versions:
|
||||||
- trusty
|
- trusty
|
||||||
- xenial
|
- xenial
|
||||||
|
- bionic
|
||||||
- name: EL
|
- name: EL
|
||||||
versions:
|
versions:
|
||||||
- 6
|
- 6
|
||||||
- 7
|
- 7
|
||||||
|
- 8
|
||||||
galaxy_tags:
|
galaxy_tags:
|
||||||
- zimbra
|
- zimbra
|
||||||
- community
|
- community
|
||||||
dependencies:
|
|
||||||
- { role: lucascbeyeler.baseline }
|
|
||||||
|
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
---
|
|
||||||
#
|
|
||||||
# Setting variables
|
|
||||||
################################################################################
|
|
||||||
- name: Loading the address to the most recent release of Zimbra OSE (8.8.5)
|
|
||||||
set_fact: zmurl=https://files.zimbra.com/downloads/8.8.8_GA/
|
|
||||||
|
|
||||||
- name: Check if your distro is Ubuntu Server 16.04 LTS
|
|
||||||
set_fact: zmpkg=zcs-8.8.8_GA_2009.UBUNTU16_64.20180322150747
|
|
||||||
when: ansible_distribution_major_version|int >= 16
|
|
||||||
|
|
||||||
- name: Check if your distro is Ubuntu Server 14.04 LTS
|
|
||||||
set_fact: zmpkg=zcs-8.8.8_GA_2009.UBUNTU14_64.20180322150747
|
|
||||||
when: ansible_distribution_major_version|int >= 14 and ansible_distribution_major_version|int <= 15
|
|
||||||
|
|
||||||
- name: Check if your distro is Red Hat Enterprise Linux or CentOS (Major 6)
|
|
||||||
set_fact: zmpkg=zcs-8.8.8_GA_2009.RHEL6_64.20180322150747
|
|
||||||
when: ansible_distribution_major_version == "6"
|
|
||||||
|
|
||||||
- name: Check if your distro is Red Hat Enterprise Linux or CentOS (Major 7)
|
|
||||||
set_fact: zmpkg=zcs-8.8.8_GA_2009.RHEL7_64.20180322150747
|
|
||||||
when: ansible_distribution_major_version == "7"
|
|
||||||
|
|
@ -2,6 +2,15 @@
|
||||||
#
|
#
|
||||||
# Download and install Zimbra OSE
|
# Download and install Zimbra OSE
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
- name: Update /etc/hosts
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/hosts
|
||||||
|
line: "{{ item }}"
|
||||||
|
state: present
|
||||||
|
with_items: "{{ hosts_lines }}"
|
||||||
|
when: hosts_lines is defined
|
||||||
|
|
||||||
- name: Download and unpacking Zimbra OSE
|
- name: Download and unpacking Zimbra OSE
|
||||||
unarchive:
|
unarchive:
|
||||||
validate_certs: no
|
validate_certs: no
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# Installation process
|
# Installation process
|
||||||
################################################################################
|
################################################################################
|
||||||
- import_tasks: 'install/vars.yml'
|
- import_tasks: 'vars/{{zimbra_version}}.yml'
|
||||||
when: getent_passwd.rc == 2
|
when: getent_passwd.rc == 2
|
||||||
- import_tasks: 'install/dependencies.yml'
|
- import_tasks: 'install/dependencies.yml'
|
||||||
when: getent_passwd.rc == 2
|
when: getent_passwd.rc == 2
|
||||||
|
|
@ -39,9 +39,10 @@
|
||||||
# Restarting Zimbra
|
# Restarting Zimbra
|
||||||
################################################################################
|
################################################################################
|
||||||
- name: 'Reloading Zimbra OSE Services'
|
- name: 'Reloading Zimbra OSE Services'
|
||||||
command: ./zmcontrol restart
|
shell: source /opt/zimbra/.bashrc && ./zmcontrol restart
|
||||||
args:
|
args:
|
||||||
|
executable: /bin/bash
|
||||||
chdir: '/opt/zimbra/bin/'
|
chdir: '/opt/zimbra/bin/'
|
||||||
become: yes
|
become: yes
|
||||||
become_user: zimbra
|
become_user: zimbra
|
||||||
ignore_errors: true
|
retries: 3
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
---
|
||||||
|
#
|
||||||
|
# Setting variables
|
||||||
|
################################################################################
|
||||||
|
- name: Loading the address to the most recent release of Zimbra OSE (8.8.15)
|
||||||
|
set_fact: zmurl=https://files.zimbra.com/downloads/8.8.15_GA/
|
||||||
|
|
||||||
|
- name: Check if your distro is Ubuntu Server 16.04 LTS
|
||||||
|
set_fact: zmpkg=zcs-8.8.15_GA_3869.UBUNTU16_64.20190918004220
|
||||||
|
when: ansible_distribution_major_version|int >= 16 and ansible_distribution_major_version|int <= 17
|
||||||
|
|
||||||
|
- name: Check if your distro is Ubuntu Server 18.04 LTS
|
||||||
|
set_fact: zmpkg=zcs-8.8.15_GA_3869.UBUNTU18_64.20190918004220
|
||||||
|
when: ansible_distribution_major_version|int >= 18 and ansible_distribution_major_version|int <= 19
|
||||||
|
|
||||||
|
- name: Check if your distro is Ubuntu Server 20.04 LTS
|
||||||
|
set_fact: zmpkg=zcs-8.8.15_GA_4179.UBUNTU20_64.20211118033954
|
||||||
|
when: ansible_distribution_major_version|int >= 20
|
||||||
|
|
||||||
|
- name: Check if your distro is Ubuntu Server 14.04 LTS
|
||||||
|
set_fact: zmpkg=zcs-8.8.15_GA_3869.UBUNTU14_64.20190918004220
|
||||||
|
when: ansible_distribution_major_version|int >= 14 and ansible_distribution_major_version|int <= 15
|
||||||
|
|
||||||
|
- name: Check if your distro is Red Hat Enterprise Linux or CentOS (Major 6)
|
||||||
|
set_fact: zmpkg=zcs-8.8.15_GA_3869.RHEL6_64.20190918004220
|
||||||
|
when: ansible_distribution_major_version == "6"
|
||||||
|
|
||||||
|
- name: Check if your distro is Red Hat Enterprise Linux or CentOS (Major 7)
|
||||||
|
set_fact: zmpkg=zcs-8.8.15_GA_3869.RHEL7_64.20190918004220
|
||||||
|
when: ansible_distribution_major_version == "7"
|
||||||
|
|
||||||
|
- name: Check if your distro is Red Hat Enterprise Linux or CentOS (Major 8)
|
||||||
|
set_fact: zmpkg=zcs-8.8.15_GA_3953.RHEL8_64.20200629025823
|
||||||
|
when: ansible_distribution_major_version == "8"
|
||||||
|
|
@ -70,7 +70,7 @@ mailboxd_directory="/opt/zimbra/mailboxd"
|
||||||
mailboxd_keystore="/opt/zimbra/mailboxd/etc/keystore"
|
mailboxd_keystore="/opt/zimbra/mailboxd/etc/keystore"
|
||||||
mailboxd_keystore_password="{{ zmpasswd }}"
|
mailboxd_keystore_password="{{ zmpasswd }}"
|
||||||
mailboxd_server="jetty"
|
mailboxd_server="jetty"
|
||||||
mailboxd_truststore="/opt/zimbra/common/lib/jvm/java/jre/lib/security/cacerts"
|
mailboxd_truststore="/opt/zimbra/common/etc/java/cacerts"
|
||||||
mailboxd_truststore_password="changeit"
|
mailboxd_truststore_password="changeit"
|
||||||
postfix_mail_owner="postfix"
|
postfix_mail_owner="postfix"
|
||||||
postfix_setgid_group="postdrop"
|
postfix_setgid_group="postdrop"
|
||||||
|
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
---
|
|
||||||
#
|
|
||||||
# Products to be installed
|
|
||||||
################################################################################
|
|
||||||
zimbra_ldap: y
|
|
||||||
zimbra_logger: y
|
|
||||||
zimbra_mta: y
|
|
||||||
zimbra_dnscache: n
|
|
||||||
zimbra_snmp: n
|
|
||||||
zimbra_store: y
|
|
||||||
zimbra_apache: y
|
|
||||||
zimbra_spell: y
|
|
||||||
zimbra_memcached: y
|
|
||||||
zimbra_proxy: y
|
|
||||||
zimbra_chat: n
|
|
||||||
zimbra_drive: n
|
|
||||||
zimbra_imapd: n
|
|
||||||
zimbra_policyd: n
|
|
||||||
|
|
||||||
#
|
|
||||||
# Zimbra configuration
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
hostname: "localhost"
|
|
||||||
domain: "localdomain"
|
|
||||||
zmpasswd: "!23Change"
|
|
||||||
zmnetwork: "192.168.200.0/8"
|
|
||||||
timezone: UTC
|
|
||||||
Loading…
Reference in New Issue