Ansible Playbook

Ansible Playbook#

This 15 Nodes scenario can be installed using Ansible: you need to setup a control node to run Ansible playbooks (please refer to section Prepare the Ansible Environment, then follow the directions on setting up the control node). To access the control node, execute the following command to log in (replace mail.example.com with the name or IP of the control node)

$ ssh root@mail.example.com
$ ssh -A root@mail.example.com

After you have logged in to the control node, download the Ansible inventory (see below this paragraph), replace the FQDN and values present in the file according to your planned Carbonio infrastructure.

Before installing, make sure each Node satisfies the Requirements and you have carried out all Preliminaries tasks.

Inventory - “Full Redundant” Scenario

Download_inventory

[postgresServers]
srv1.example.com

[masterDirectoryServers]
srv1.example.com

[replicaDirectoryServers]
srv2.example.com

[serviceDiscoverServers]
srv1.example.com
srv2.example.com
srv3.example.com

### This Role is no longer required since Carbonio 24.12.0
[dbsConnectorServers]

[mtaServers]
srv4.example.com
srv5.example.com

[proxyServers]
srv6.example.com
srv7.example.com

[proxyServers:vars]
webmailHostname=YourWebmailPublicHostname

[applicationServers]
srv8.example.com
srv9.example.com

[filesServers]
srv10.example.com
srv11.example.com

[docsServers]
srv12.example.com
srv13.example.com

[taskServers]
srv10.example.com
srv11.example.com

[previewServers]
srv12.example.com
srv13.example.com

### The IP address(es) might be the same, see section UDP Video
### Streaming

[videoServers]
srv14.example.com public_ip_address=x.y.z.t
srv15.example.com public_ip_address=w.u.v.s

[prometheusServers]
srv3.example.com

[syslogServer]
srv3.example.com

Once you edited the inventory, save it in a directory of your choice as carbonio-inventory. Now, you can run the script: from that directory execute the command

$ ansible-playbook zxbot.carbonio_install.carbonio_install \
-u root -i carbonio-inventory