Setting up a new shared web server

The following steps should be taken to setup a new web server:

  1. In ansible seed repo, edit hosts.yml to copy each line with weboriring001 to your new name.
  2. Execute sower --live generate:weborigin --parent hostxxx.mayfirst.org to generate a new weborigin yaml file.
  3. Follow regular kvm guest setup steps
  4. Be sure you created the ssh key in the step above!
  5. Grant access to the mysql server so your weborigin server can run proxysql properly. Adjust to account for all red enabled mysql servers. sower --live playbook --tags proxysql mysql*.mayfirst.org
  6. Add as upstream servers to web proxies: sower --live playbook --tags nginx-proxy webproxy*.mayfirst.org
  7. Add IP to mail filter servers so it can relay email: sower --live playbook --tags postfix mailfilter*.mayfirst.org
  8. If you want this to be the new default web origin, run this sql statement against the red001 control panel database (replace weboriginNNN and dataNNNN with the appropriate values): UPDATE red_service SET service_default_host = 'weboriginNNN.mayfirst.org', service_default_mountpoint = 'dataNNNN' WHERE service_name = 'web_conf';