rockfruit / ansible-playbook

An Ansible playbook for automated deployment of full-stack Plone servers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plone Ansible playbook

Description

Use Ansible to provision a full-stack Plone server

Introduction

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 or Apache 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, 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.

See the docs subdirectory or readthedocs for complete documentation.

TL;DR

  1. Install a current version of Ansible;
  2. If you wish to test locally, install Vagrant and VirtualBox;
  3. Check out or download a copy of this package;
  4. Run ansible-galaxy -p roles -r requirements.txt install to install required roles;
  5. Copy one of the sample*.yml files to local-configure.yml and edit as needed.
  6. To test in a local virtual machine, run vagrant up or vagrant provision;
  7. To deploy, create an Ansible inventory file for the remote host (look at vbox_host.cfg for an example) and run ansible-playbook --ask-sudo-pass -i myhost.cfg playbook.yml;
  8. Set a real password for your Plone instance on the target server;
  9. Set up appropriate firewalls.

About

An Ansible playbook for automated deployment of full-stack Plone servers.


Languages

Language:Python 89.5%Language:Shell 10.5%