Skip to content

Extend Ansible playbook to install prereqs and deploy remotely #8

@Fosten

Description

@Fosten

Hello all. I attended @ericof training course at Plone Conference 2021 and really enjoyed it! Using docker images to deploy Plone was exactly what I was looking for. Afterwards, I dug deeper into the Ansible implementation and how it could be improved.

  1. Installing the prerequisites by hand can be time consuming... so I added a role that does that for you
  2. The current ansible playbook only deploys a local vagrantbox... so I added a role that also deploys remotely

I have created a new branch which includes:

3 menu options:

  • Build Development Environment
  • Deploy Local Staging VM
  • Deploy Remote Production VM

4 roles:

  • deploy_local
  • deploy_remote
  • setup_client
  • setup_host

Following these steps will now create a 3-tiered Plone solution (dev, staging, production) using Docker images:

  • replace DOCKER_HUB_USER_CHANGE_ME with your Docker Hub username
  • edit the hosts file to match your desired configuration
  • make clean && make setup
  • make install + Choose menu option 1 to build the dev environment
  • Manually build the backend and frontend, make start-images, make release-images
  • make install + Choose option 2 for local deployment
  • make install + Choose option 3 for remote deployment

For a training course, it may not be ideal to automate everything, but this new playbook does help get past some hurdles that students can struggle with, as well as freeing up more class time for additional lessons. I built this because I wanted a complete Plone multi-server Docker solution and am submitting it to the collective in hopes it may benefit others as well. Thanks for checking it out!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions