summaryrefslogtreecommitdiff
path: root/baserock_frontend/instance-config.yml
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 /baserock_frontend/instance-config.yml
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 'baserock_frontend/instance-config.yml')
-rw-r--r--baserock_frontend/instance-config.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/baserock_frontend/instance-config.yml b/baserock_frontend/instance-config.yml
new file mode 100644
index 00000000..d7ce842b
--- /dev/null
+++ b/baserock_frontend/instance-config.yml
@@ -0,0 +1,18 @@
+# Instance configuration for Baserock HAProxy instance.
+#
+# This playbook should be run after starting an instance of the Baserock
+# frontend image.
+---
+- hosts: frontend-haproxy
+ gather_facts: false
+ sudo: yes
+ tasks:
+ # To create the .pem file, simply concatenate
+ # certs/baserock.org-ssl-certificate-temporary-dsilverstone.full.cert with
+ # the private key for that certificate (which is not committed to Git, of
+ # course).
+ - name: install SSL certificate
+ copy: src=../private/baserock.org-ssl-certificate-temporary-dsilverstone.pem dest=/etc/pki/tls/private/baserock.pem owner=haproxy mode=400
+
+ - name: HAProxy configuration
+ copy: src=haproxy.cfg dest=/etc/haproxy/haproxy.cfg