diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2021-08-18 13:16:23 +0200 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2021-08-18 13:16:23 +0200 |
commit | 052cd1ad1d6ed31a835a390479e354fd87fcc6cf (patch) | |
tree | e15b00c138d765e5dd82056a9472c2599e20b369 | |
parent | c11f94ec51e61dd8fb9a077919bd582b50b68528 (diff) | |
download | infrastructure-052cd1ad1d6ed31a835a390479e354fd87fcc6cf.tar.gz |
README frontend wip
-rw-r--r-- | README.md | 20 |
1 files changed, 6 insertions, 14 deletions
@@ -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: <https://cbonte.github.io/haproxy-dconv/configuration-1.5.html>. +Full HAProxy 2.0 documentation: <https://cbonte.github.io/haproxy-dconv/2.0/configuration.html>. 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. |