summaryrefslogtreecommitdiff
path: root/baserock_frontend/instance-config.yml
diff options
context:
space:
mode:
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