summaryrefslogtreecommitdiffstats
path: root/packer
diff options
context:
space:
mode:
authorAnil Belur <abelur@linuxfoundation.org>2018-06-13 13:32:09 +1000
committerAnil Belur <abelur@linuxfoundation.org>2018-06-13 17:29:48 +1000
commit6b95dc85baa0134e7741df0b041c50e3afe14210 (patch)
tree43fb83d1c5f51c6da145f4d4d5eeca60de1b38a9 /packer
parent091ac2bd2f43bf459dcb2262d77293e4578b5451 (diff)
Expand rendered image name to include sec and ms
Expand rendered image name to include seconds and milliseconds. This reduces the probability of image name collisions on the cloud from 1/60 to 1/60000. Fixed upstream in common-packer [1.]. [1.] https://gerrit.linuxfoundation.org/infra/#/c/10986/ Change-Id: If006aaafa5aaf427ef034fbca479bb4b71194109 Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Diffstat (limited to 'packer')
-rw-r--r--packer/templates/basebuild.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/packer/templates/basebuild.json b/packer/templates/basebuild.json
index 426f290a..bcb6f0ae 100644
--- a/packer/templates/basebuild.json
+++ b/packer/templates/basebuild.json
@@ -19,7 +19,8 @@
"password": "{{user `stack_pass`}}",
"region": "ca-ymq-1",
"ssh_username": "{{user `cloud_user`}}",
- "image_name": "{{user `distro`}} - basebuild - {{isotime \"20060102-1504\"}}",
+ "image_name": "{{user `distro`}} - basebuild - {{isotime \"20060102-150405.000\"}}",
+ "instance_name": "{{user `distro`}}-basebuild-{{uuid}}",
"source_image_name": "{{user `base_image`}}",
"flavor": "v1-standard-1",
"availability_zone": "ca-ymq-2",