aboutsummaryrefslogtreecommitdiffstats
path: root/packer
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2019-04-25 21:52:07 +0200
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2019-04-25 21:52:07 +0200
commit132ee263efbc45fa479f47df5cfd734f8f57bb1c (patch)
tree8d701484f1e4a7435758ab435444d1be0634fa24 /packer
parent9181265976a2dce3ddee0e9e740761359ede0d77 (diff)
Add smaller image template for hwtest slave
Change-Id: I80ab0095e62c48d9b9e75dfcbc3bb3cce8c75205 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'packer')
-rw-r--r--packer/templates/basebuild-agl-test-slave.json4
-rw-r--r--packer/templates/basebuild-control-slave.json2
-rw-r--r--packer/templates/basebuild-hwtest-slave.json62
3 files changed, 65 insertions, 3 deletions
diff --git a/packer/templates/basebuild-agl-test-slave.json b/packer/templates/basebuild-agl-test-slave.json
index e362120c..7de56317 100644
--- a/packer/templates/basebuild-agl-test-slave.json
+++ b/packer/templates/basebuild-agl-test-slave.json
@@ -28,10 +28,10 @@
],
"user_data_file": "{{user `cloud_user_data`}}",
"ssh_username": "{{user `cloud_user`}}",
- "flavor": "v2-standard-1-iops",
+ "flavor": "v2-standard-2-iops",
"image_disk_format": "qcow2",
"use_blockstorage_volume": true,
- "volume_size": "400",
+ "volume_size": "200",
"metadata": {
"ci_managed": "yes"
}
diff --git a/packer/templates/basebuild-control-slave.json b/packer/templates/basebuild-control-slave.json
index f826e416..67ce66e2 100644
--- a/packer/templates/basebuild-control-slave.json
+++ b/packer/templates/basebuild-control-slave.json
@@ -28,7 +28,7 @@
],
"user_data_file": "{{user `cloud_user_data`}}",
"ssh_username": "{{user `cloud_user`}}",
- "flavor": "v2-standard-1",
+ "flavor": "v2-standard-2",
"image_disk_format": "qcow2",
"use_blockstorage_volume": true,
"volume_size": "5",
diff --git a/packer/templates/basebuild-hwtest-slave.json b/packer/templates/basebuild-hwtest-slave.json
new file mode 100644
index 00000000..35db0e42
--- /dev/null
+++ b/packer/templates/basebuild-hwtest-slave.json
@@ -0,0 +1,62 @@
+{
+ "variables": {
+ "stack_tenant": null,
+ "stack_user": null,
+ "stack_pass": null,
+ "stack_network": null,
+
+ "base_image": null,
+ "cloud_user": null,
+ "distro": null,
+ "cloud_user_data": null
+ },
+ "builders": [
+ {
+ "name": "vexxhost",
+ "image_name": "{{user `distro`}} - basebuild-agl-test-slave - {{isotime \"20060102-1504\"}}",
+ "source_image_name": "{{user `base_image`}}",
+ "type": "openstack",
+ "identity_endpoint": "https://auth.vexxhost.net/v3/",
+ "username": "{{user `stack_user`}}",
+ "password": "{{user `stack_pass`}}",
+ "tenant_name": "{{user `stack_tenant`}}",
+ "domain_name": "Default",
+ "region": "ca-ymq-1",
+ "availability_zone": "ca-ymq-2",
+ "networks": [
+ "{{user `stack_network`}}"
+ ],
+ "user_data_file": "{{user `cloud_user_data`}}",
+ "ssh_username": "{{user `cloud_user`}}",
+ "flavor": "v2-standard-2-iops",
+ "image_disk_format": "qcow2",
+ "use_blockstorage_volume": true,
+ "volume_size": "5",
+ "metadata": {
+ "ci_managed": "yes"
+ }
+ }
+ ],
+ "provisioners": [
+ {
+ "type": "shell",
+ "inline": ["mkdir -p /tmp/packer"]
+ },
+ {
+ "type": "file",
+ "source": "provision/basebuild/",
+ "destination": "/tmp/packer"
+ },
+ {
+ "type": "shell",
+ "scripts": [
+ "provision/baseline.sh",
+ "provision/basebuild.sh",
+ "provision/agl_dependencies.sh",
+ "provision/agl_mirror.sh",
+ "provision/system_reseal.sh"
+ ],
+ "execute_command": "chmod +x {{ .Path }}; if [ \"$UID\" == \"0\" ]; then {{ .Vars }} '{{ .Path }}'; else {{ .Vars }} sudo -E '{{ .Path }}'; fi"
+ }
+ ]
+}