diff options
author | Anil Belur <abelur@linuxfoundation.org> | 2018-06-13 13:32:09 +1000 |
---|---|---|
committer | Anil Belur <abelur@linuxfoundation.org> | 2018-06-13 17:29:48 +1000 |
commit | 6b95dc85baa0134e7741df0b041c50e3afe14210 (patch) | |
tree | 43fb83d1c5f51c6da145f4d4d5eeca60de1b38a9 /packer/templates | |
parent | 091ac2bd2f43bf459dcb2262d77293e4578b5451 (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/templates')
-rw-r--r-- | packer/templates/basebuild.json | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packer/templates/basebuild.json b/packer/templates/basebuild.json index 426f290af..bcb6f0ae7 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", |