Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend Ansible playbook to install prereqs and deploy remotely #8

Open
Fosten opened this issue Feb 28, 2022 · 0 comments
Open

Extend Ansible playbook to install prereqs and deploy remotely #8

Fosten opened this issue Feb 28, 2022 · 0 comments

Comments

@Fosten
Copy link
Contributor

Fosten commented Feb 28, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant