Setting up a new shared web server
The following steps should be taken to setup a new web server:
- In ansible seed repo, edit
hosts.ymlto copy each line withweboriring001to your new name. - Execute
sower --live generate:weborigin --parent hostxxx.mayfirst.orgto generate a new weborigin yaml file. - Follow regular kvm guest setup steps
- Be sure you created the ssh key in the step above!
- 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 - Add as upstream servers to web proxies:
sower --live playbook --tags nginx-proxy webproxy*.mayfirst.org - Add IP to mail filter servers so it can relay email:
sower --live playbook --tags postfix mailfilter*.mayfirst.org - 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';