summaryrefslogtreecommitdiff
path: root/README.mdwn
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-06-19 17:16:39 +0100
committerBaserock Gerrit <gerrit@baserock.org>2015-07-13 12:27:43 +0000
commit0feb2555a62834a42b03e2902e68c870156a0fc2 (patch)
treec9ecf589005e64e52a67d04c5055bd4a6f9a9202 /README.mdwn
parent5889f7c9539d10bd32050e4e96404bdb9ffa762b (diff)
downloadinfrastructure-0feb2555a62834a42b03e2902e68c870156a0fc2.tar.gz
Avoid using Packer for the frontend system
Also, move it into baserock_frontend so it is clearly differentiated from the upstream definitions.git stuff. It's now based off Fedora 21 instead of Fedora 20. This is now deployed at baserock.org. Change-Id: Icaabc84f9513d08479d8d22c19e8b632ac5108b5
Diffstat (limited to 'README.mdwn')
-rw-r--r--README.mdwn40
1 files changed, 24 insertions, 16 deletions
diff --git a/README.mdwn b/README.mdwn
index 6f57412e..a2ac9d87 100644
--- a/README.mdwn
+++ b/README.mdwn
@@ -171,29 +171,37 @@ simply pointing each subdomain to a different instance using separate public
IPs. It also provides a starting point for future load-balancing and failover
configuration.
-If you want to add a new service to the Baserock Project infrastructure via
-the frontend, alter the haproxy.cfg file in the frontend/ directory. Our
-OpenStack instance doesn't provide any kind of internal DNS service, so you
-must put the fixed IP of each instance.
-
To deploy this system:
- packer build -only=production frontend/packer_template.json
+ nova boot frontend-haproxy \
+ --key-name=$keyname \
+ --flavor=dc1.1x1.1 \
+ --image=$fedora_image_id \
+ --nic="net-id=$network_id" \
+ --security-groups default,gerrit,web-server \
+ --user-data ./baserock-ops-team.cloud-config
+ ansible-playbook -i hosts baserock_frontend/image-config.yml
+ ansible-playbook -i hosts baserock_frontend/instance-config.yml
+
+ ansible -i hosts -m service -a 'name=haproxy enabled=true state=started' \
+ --sudo frontend-haproxy
- ansible-playbook -i hosts frontend/instance-config.yml
+The baserock_frontend system is stateless.
Full HAProxy 1.5 documentation: <https://cbonte.github.io/haproxy-dconv/configuration-1.5.html>.
-When setting up a new instance with the frontend already deployed, do the
-following:
+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 185.43.218.170 (frontend)
+- 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`
-- request a subdomain that points at 85.199.252.162
-- log in to the frontend-haproxy machine
-- edit /etc/haproxy/haproxy.conf, and make the same changes to the copy in this
- repo.
-- run: `sudo haproxy -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf
- $(cat /var/run/haproxy.pid)` to reload the configuration without interrupting
- the service (this confuses systemd, but I'm not sure how to avoid that)
+OpenStack doesn't provide any kind of internal DNS service, so you must put the
+fixed IP of each instance.
### Database