Plone Ansible playbook
Use Ansible to provision a full-stack Plone server
Plone's Ansible Playbook can completely provision a remote server to run the full stack of Plone, including:
- Plone in a cluster configuration;
- Automatic starting and process control of the Plone cluster with supervisor;
- Load balancing of the cluster with HAProxy;
- Caching with Varnish;
- Nginx as a world-facing remote proxy and URL rewrite engine;
- An outgoing-mail-only mail server using Postfix;
- Monitoring and log analysis with munin-node and logwatch and fail2ban.
- Use of a local VirtualBox provisioned via vagrant to test and model your remote server.
An ansible playbook and roles describe the desired condition of the server. The playbook is used both for initial provisioning and for updating.
We generally support relatively current CentOS and Debian/Ubuntu environments. Versions currently supported are Ubuntu 14 (Trusty) LTS, Ubuntu 15, Debian wheezy, Debian jessy, and CentOS 7. Support for Ubuntu Xenial 16.0.4 is currently under development.
docs subdirectory or readthedocs for complete documentation.
- Install a current version of Ansible (use virtualenv and pip -- not your OS package manager);
- If you wish to test locally, install Vagrant and VirtualBox;
- Check out or download a copy of the STABLE branch of this package;
ansible-galaxy -p roles -r requirements.yml installto install required roles;
- Copy one of the
local-configure.ymland edit as needed.
- To test in a local virtual machine, run
- To deploy, create an Ansible inventory file for the remote host and run
ansible-playbook --ask-sudo-pass -i myhost.cfg playbook.yml;
- Set a real password for your Plone instance on the target server;
- Set up appropriate firewalls.
This version of the playbook requires that the plone.plone_server role be 1.2.0+.