diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-11-21 12:54:14 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-11-21 13:02:30 +0000 |
commit | 6ace1d5cb4183eccc5b2eefc3293cfee41dac270 (patch) | |
tree | 47556c5bc5b6be67c9d1c8ea1d606a904b6d7a5b | |
parent | bf9b90bbfd81140b686477e2fb22766439dabc0f (diff) | |
download | infrastructure-6ace1d5cb4183eccc5b2eefc3293cfee41dac270.tar.gz |
frontend: Various fixes
-rw-r--r-- | frontend/packer_template.json | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/frontend/packer_template.json b/frontend/packer_template.json index 3341132d..83b9fd93 100644 --- a/frontend/packer_template.json +++ b/frontend/packer_template.json @@ -9,12 +9,13 @@ { "name": "production", "type": "openstack", - "image_name": "sam-baserock-openid-test", + "image_name": "frontend-haproxy", "flavor": 2, - "source_image": "eb6cc57b-da78-408a-a4b4-20a27168198b", + "source_image": "742e0414-c985-4994-b307-4aafade942b3", "networks": ["d079fa3e-2558-4bcb-ad5a-279040c202b5"], - "floating_ip": "85.199.252.161", - "use_floating_ip": true + "floating_ip": "85.199.252.162", + "use_floating_ip": true, + "ssh_username": "fedora" } ], "provisioners": [ @@ -26,22 +27,30 @@ { "type": "file", "source": "frontend/haproxy.cfg", - "destination": "/etc/haproxy" + "destination": "/var/tmp/haproxy.cfg" }, { "type": "shell", "inline": [ "sudo yum install -y haproxy", - "systemctl enable haproxy.service", - "systemctl start haproxy.service" + "sudo mv /var/tmp/haproxy.cfg /etc/haproxy/haproxy.cfg", + "sudo mkdir /var/log/journal" ] + }, + { + "type": "shell", + "inline": [ + "sudo systemctl enable haproxy.service", + "sudo systemctl start haproxy.service" + ], + "only": ["production"] } ], "post-processors": [ [ { "type": "docker-tag", - "repository": "baserock/openid-provider", + "repository": "baserock/frontend", "tag": "latest", "only": ["development"] } |