plone / ansible-playbook

An Ansible playbook for automated deployment of full-stack Plone servers.
90 stars 74 forks source link

Document what can be tested in Testing with Vagrant #76

Open stevepiercy opened 7 years ago

stevepiercy commented 7 years ago

It's not clear what can be tested under Testing with Vagrant. It would be good to set the user expectation so they don't spend time trying to get something to work that will not, and to improve documentation for things that do work, including links to settings in this repo and Plone docs.

The running of the playbook itself is one test.

It took a while to figure out how to SSH in. I got some settings from vbox_host.cfg. Eventually I figured out that this works: ssh -i /path/to/virtualbox/private_key ubuntu@127.0.0.1 -p2222

I tried all the suggested ports over HTTP: http://127.0.0.1:1080 (web server/virtual hosting. Links and subrequests to assets (JS, CSS, images) won't work. If there is a known fix or workaround, it would be good to document that.) http://127.0.0.1:2080 (haproxy stats page?) http://127.0.0.1:7081 ("Plone is up and running" page) http://127.0.0.1: 9080 (webdav?) http://127.0.0.1: 5949 (munin?)

Is there anything that can be tested, and if so through what method?

I volunteer to do any documentation for this.

ramiroluz commented 7 years ago

To ssh you can just run vagrant: vagrant ssh

Here are some default ports and the location where they are defined:

The Vagrantfile, expose this ports:

Could not find where the load_balancer default front end is defined as a default, but found this document: http://plone-ansible-playbook.readthedocs.io/en/latest/load_balancer.html

acsr commented 6 years ago

In the multiserver example first of all the initial provisioning is not tested if it fails at all. See my ticket: #113 Therefore a later failing does not give any hint. If you customize the example everything in the tests needs to be adjusted (right?)

tkimnguyen commented 5 years ago

@stevepiercy I think this PR https://github.com/plone/ansible-playbook/pull/118 addresses your main point

If you think the vagrant ssh instructions are missing from the docs, please create a new issue

stevepiercy commented 5 years ago

There is no main point, but several interrelated points. Reopening.

tkimnguyen commented 5 years ago

I added @ramiroluz 's helpful port forwarding info

stevepiercy commented 5 years ago

I added some comments to the commit. I could not submit them to request changes in a review.