From 052cd1ad1d6ed31a835a390479e354fd87fcc6cf Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Wed, 18 Aug 2021 13:16:23 +0200 Subject: README frontend wip --- README.md | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 988a43b8..a51994ba 100644 --- a/README.md +++ b/README.md @@ -289,34 +289,26 @@ configuration. To deploy this system: - nova boot frontend-haproxy \ - --key-name=$keyname \ - --flavor=1C-1GB \ - --image=$fedora_image_id \ - --nic="net-id=$network_id" \ - --security-groups default,shared-artifact-cache,web-server \ - --user-data ./baserock-ops-team.cloud-config + # Terraform + ansible-playbook -i hosts baserock_frontend/image-config.yml ansible-playbook -i hosts baserock_frontend/instance-config.yml \ --vault-password-file=~/vault-infra-pass - ansible-playbook -i hosts baserock_frontend/instance-backup-config.yml + # backups not being done at the moment + # ansible-playbook -i hosts baserock_frontend/instance-backup-config.yml - ansible -i hosts -m service -a 'name=haproxy enabled=true state=started' \ - --sudo frontend-haproxy The baserock_frontend system is stateless. -Full HAProxy 1.5 documentation: . +Full HAProxy 2.0 documentation: . If you want to add a new service to the Baserock Project infrastructure via the frontend, do the following: -- request a subdomain that points at 37.153.173.19 (frontend) +- request a subdomain that points at the frontend IP - alter the haproxy.cfg file in the baserock_frontend/ directory in this repo as necessary to proxy requests to the real instance - run the baserock_frontend/instance-config.yml playbook -- run `ansible -i hosts -m service -a 'name=haproxy enabled=true - state=restarted' --sudo frontend-haproxy` OpenStack doesn't provide any kind of internal DNS service, so you must put the fixed IP of each instance. -- cgit v1.2.1