Compare commits

..

24 Commits

Author SHA1 Message Date
Lucas Costa Beyeler a283e67fdd
Merge pull request #24 from UdelaRInterior/agregarCaseUbuntu20
Including installer for Ubuntu 20
2025-08-17 11:33:23 +01:00
Romina Brown e15bdb4af2 Se agrega instalador para Ubuntu 20 2025-07-24 11:12:27 -03:00
Lucas Costa Beyeler 11a626355e Removing reference to old versions and removing var folder 2021-02-06 19:25:51 +00:00
Lucas Costa Beyeler 6b02ae84f9 Merge branch 'master' of https://github.com/lucascbeyeler/zimbra 2021-02-06 19:20:47 +00:00
Lucas Costa Beyeler 4e39e65ac1
Merge pull request #16 from UdelaRInterior/hosts-file-config 2021-01-21 06:28:06 +00:00
mgodoy 774a027d8f adding task to update /etc/hosts if required 2021-01-20 14:04:43 -03:00
Lucas Costa Beyeler 02dc7b81cc
Merge pull request #15 from UdelaRInterior/move-vars-to-defaults
move vars to defualts for precedence
2021-01-16 18:56:08 +00:00
mgodoy a4a5c710f3 move vars to defualts for precedence 2021-01-13 11:30:18 -03:00
Lucas Costa Beyeler f6cab03c39
Update FUNDING.yml 2020-12-19 13:17:20 +00:00
Lucas Costa Beyeler 07fdf94835
Create FUNDING.yml 2020-12-19 13:16:56 +00:00
Lucas Costa Beyeler df5f2f64f0
Update main.yml 2020-12-13 16:21:59 +00:00
Lucas Costa Beyeler b584847a3d
Update main.yml 2020-12-13 16:21:36 +00:00
Lucas Costa Beyeler 173dc5d2b2 Remove idea folder 2020-12-08 10:43:00 +00:00
Lucas Costa Beyeler ae30094f38 Fixing the default version to 8.8.15 2020-12-08 10:41:00 +00:00
Lucas Costa Beyeler 52cde71718 Enabling support to Zimbra 8.8.15 and dropping the support to any other version 2020-12-08 10:37:41 +00:00
Lucas Costa Beyeler a220d76add
Merge pull request #13 from danitfk/develop
Supports 8.8.12 version
2020-12-07 16:00:43 +00:00
Daniel Gordi 703aa09a6b
Change default version to 8.8.12 2019-04-05 21:14:01 +04:30
Daniel Gordi 5b1dc256f0
Add main.yml into .gitignore 2019-04-05 21:11:54 +04:30
Daniel Gordi 68eb3d980f
Update README 2019-04-05 21:09:55 +04:30
Daniel Gordi 5083afead5
Add Supports for Ubuntu 18.04 and Version 8.8.12GA 2019-04-05 21:08:17 +04:30
Lucas Costa Beyeler 3bda4ac1e6 Including variable to inform Zimbra version
Now you can set which version of Zimbra you want to use. For now only versions 8.8.5 to 8.8.10 is available. For the future, old versions will be included too!
2018-10-16 22:44:11 +01:00
Lucas Costa Beyeler 79156641a8 Removing bugfix for 8.8.5 2018-04-07 11:33:52 -03:00
Lucas Costa Beyeler 1b7e74a629 Updating playbook to Zimbra version 8.8.8 2018-04-07 11:31:36 -03:00
Lucas Costa Beyeler 9d7563a37b
Update README.md 2018-01-07 00:57:57 -02:00
11 changed files with 99 additions and 86 deletions

3
.github/FUNDING.yml vendored Normal file
View File

@ -0,0 +1,3 @@
# These are supported funding model platforms
github: [lucascbeyeler]

1
.gitignore vendored
View File

@ -1 +1,2 @@
OLD
.idea

View File

@ -1,22 +1,22 @@
Zimbra
=========
Ansible role to install and configure Zimbra Collaboration Open Source Edition
Non-Official ansible role to install and configure Zimbra Collaboration Open Source Edition on Red Hat, CentOS and Ubuntu Server.
[![Build Status](https://travis-ci.org/lucascbeyeler/zimbra.svg?branch=master)](https://travis-ci.org/lucascbeyeler/zimbra)
[![Zimbra Version](https://img.shields.io/badge/Zimbra-8.8.5-blue.svg)](https://www.zimbra.com/downloads/zimbra-collaboration-open-source/)
[![Zimbra Version](https://img.shields.io/badge/Zimbra-8.8.15-blue.svg)](https://www.zimbra.com/downloads/zimbra-collaboration-open-source/)
![Linux Distro](https://img.shields.io/badge/platform-CentOS%20%7C%20Red%20Hat%20%7C%20Ubuntu-blue.svg)
![Branch](https://img.shields.io/badge/Branch-Master-green.svg)
[![Ansible Version](https://img.shields.io/badge/Ansible-2.4.2.0-green.svg)](https://www.ansible.com/)
[![Ansible Version](https://img.shields.io/badge/Ansible-2.9.6-green.svg)](https://www.ansible.com/)
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
--------------
ansible-zimbra is already in Ansible Galaxy, so the only thing you need to install this script in your machine is just use ansible-galaxy command:
Zimbra is already in Ansible Galaxy, so the only thing you need to install this script in your machine is just use ansible-galaxy command:
```
ansible-galaxy install lucascbeyeler.zimbra
@ -53,7 +53,7 @@ Role Variables
* **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;
* **timezone:** inform the timezone the playbook should set in your server;
* **ip_address:** inform the server's ip address - See [ZCS 8.8 upgrade Proxy port problem](https://forums.zimbra.org/viewtopic.php?f=15&t=62695)
* **zimbra_version:** Inform which version of Zimbra you want to install. Default: 8.8.15
Service Variables - Inform "y" or "n"
--------------
@ -86,12 +86,11 @@ Example Playbook
become_method: sudo
roles:
- role: lucascbeyeler.zimbra
hostname: warudo
domain: hollowbastion.com
hostname: localhost
domain: localdomain
timezone: America/Sao_Paulo
zmpasswd: 123change
zmnetwork: 192.168.122.0/24
ip_address: 192.168.122.192
zmlogologin: /tmp/login.png
zmlogoapp: /tmp/app.png
```

View File

@ -9,3 +9,39 @@ ubuntu:
centos:
- pyzor
- 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

View File

@ -3,19 +3,19 @@ galaxy_info:
description: Ansible role to install and configure Zimbra Collaboration Open Source Edition
company: Beyeler
license: GPLv3
min_ansible_version: 2.4
min_ansible_version: 2.9.6
github_branch: master
platforms:
- name: Ubuntu
versions:
- trusty
- xenial
- bionic
- name: EL
versions:
- 6
- 7
- 8
galaxy_tags:
- zimbra
- community
dependencies:
- { role: lucascbeyeler.baseline }

View File

@ -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.5_GA/
- name: Check if your distro is Ubuntu Server 16.04 LTS
set_fact: zmpkg=zcs-8.8.5_GA_1894.UBUNTU16_64.20171026035615
when: ansible_distribution_major_version|int >= 16
- name: Check if your distro is Ubuntu Server 14.04 LTS
set_fact: zmpkg=zcs-8.8.5_GA_1894.UBUNTU14_64.20171026035615
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.5_GA_1894.RHEL6_64.20171026035615
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.5_GA_1894.RHEL7_64.20171026035615
when: ansible_distribution_major_version == "7"

View File

@ -2,6 +2,15 @@
#
# 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
unarchive:
validate_certs: no
@ -39,22 +48,3 @@
command: ./zmsetup.pl -c /tmp/zcs/installZimbraScript
args:
chdir: /opt/zimbra/libexec/
#
# BUGFIX WORKAROUND - Zimbra 8.8.5 does not work without configuring the hostname
################################################################################
- name: Configuring Zimbra Hostname for Domain {{ domain }}
command: ./zmprov md {{ domain }} zimbraVirtualHostname {{ hostname }}.{{ domain }}
args:
chdir: /opt/zimbra/bin/
- name: Configuring Zimbra Hostname for Domain {{ domain }}
command: ./zmprov md {{ domain }} zimbraVirtualIPAddress {{ ip_address }}
args:
chdir: /opt/zimbra/bin/
- name: Reloading Proxy configuration
command: ./zmproxyconfgen
args:
chdir: /opt/zimbra/libexec/

View File

@ -10,7 +10,7 @@
#
# Installation process
################################################################################
- import_tasks: 'install/vars.yml'
- import_tasks: 'vars/{{zimbra_version}}.yml'
when: getent_passwd.rc == 2
- import_tasks: 'install/dependencies.yml'
when: getent_passwd.rc == 2
@ -39,9 +39,10 @@
# Restarting Zimbra
################################################################################
- name: 'Reloading Zimbra OSE Services'
command: ./zmcontrol restart
shell: source /opt/zimbra/.bashrc && ./zmcontrol restart
args:
executable: /bin/bash
chdir: '/opt/zimbra/bin/'
become: yes
become_user: zimbra
ignore_errors: true
retries: 3

34
tasks/vars/8.8.15.yml Normal file
View File

@ -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"

View File

@ -70,7 +70,7 @@ mailboxd_directory="/opt/zimbra/mailboxd"
mailboxd_keystore="/opt/zimbra/mailboxd/etc/keystore"
mailboxd_keystore_password="{{ zmpasswd }}"
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"
postfix_mail_owner="postfix"
postfix_setgid_group="postdrop"

View File

@ -1,29 +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
ip_address: "127.0.0.1"