summaryrefslogtreecommitdiff
path: root/baserock_openid_provider
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-11-21 16:31:32 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-11-21 17:01:13 +0000
commit5b7bde210c0c938ca37711397e2bd2ecc507554a (patch)
tree45356cde3edbb73fdb444372968d3c96e997f925 /baserock_openid_provider
parent1f214f938a099488761ef5325dc41c0658f1a4ba (diff)
downloadinfrastructure-5b7bde210c0c938ca37711397e2bd2ecc507554a.tar.gz
openid_provider: Update Packer template for new DataCentred cloud
Includes some fixes for the fact that we need to SSH in as 'fedora' user, not 'root'.
Diffstat (limited to 'baserock_openid_provider')
-rw-r--r--baserock_openid_provider/packer_template.json19
1 files changed, 13 insertions, 6 deletions
diff --git a/baserock_openid_provider/packer_template.json b/baserock_openid_provider/packer_template.json
index bb8c8b20..046042bc 100644
--- a/baserock_openid_provider/packer_template.json
+++ b/baserock_openid_provider/packer_template.json
@@ -9,12 +9,13 @@
{
"name": "production",
"type": "openstack",
- "image_name": "sam-baserock-openid-test",
+ "image_name": "openid.baserock.org",
"flavor": 2,
- "source_image": "752b66d3-8f39-4b52-831e-f638ff3c61f8",
- "networks": ["798c5c38-1983-4fd1-823b-3d32bf78f781"],
- "floating_ip": "85.199.252.126",
- "use_floating_ip": true
+ "source_image": "742e0414-c985-4994-b307-4aafade942b3",
+ "networks": ["d079fa3e-2558-4bcb-ad5a-279040c202b5"],
+ "floating_ip": "85.199.252.132",
+ "use_floating_ip": true,
+ "ssh_username": "fedora"
}
],
"provisioners": [
@@ -24,6 +25,11 @@
"only": ["production"]
},
{
+ "type": "shell",
+ "inline": [ "sudo chown fedora:fedora /srv" ],
+ "only": ["production"]
+ },
+ {
"type": "file",
"source": "baserock_openid_provider",
"destination": "/srv",
@@ -35,7 +41,8 @@
},
{
"type": "ansible-local",
- "playbook_file": "baserock_openid_provider/local.yml"
+ "playbook_file": "baserock_openid_provider/local.yml",
+ "command": "sudo ansible-playbook"
},
{
"type": "shell",