Create packer template for Eiffel build servers
[infra/tools.git] / infra / jenkins / slave-setup / eiffel-build-server / cloud-infra-base-city-kna-ubuntu2004.json
1 {
2     "builders": [
3         {
4             "type": "openstack",
5             "identity_endpoint": "https://identity1.citycloud.com:5000/v3/",
6             "image_name": "eiffel-build-ubuntu2004",
7             "ssh_username": "ubuntu",
8             "source_image_name": "Ubuntu 20.04 Focal Fossa 20200423",
9             "flavor": "2C-4GB-50GB",
10             "networks": [
11                 "e310fab3-cfef-4107-b40e-791e9c01903d"
12             ],
13             "floating_ip_network": "ext-net"
14         }
15     ],
16     "provisioners": [
17         {
18             "type": "file",
19             "source": "authorized_keys",
20             "destination": "/home/ubuntu/authorized_keys.packer"
21         },
22         {
23             "type": "file",
24             "source": "podman_registries.conf",
25             "destination": "/home/ubuntu/podman_registries.conf.packer"
26         },
27         {
28             "type": "file",
29             "source": "podman_storage.conf",
30             "destination": "/home/ubuntu/podman_storage.conf.packer"
31         },
32         {
33             "script": "configure-image-ubuntu2004.sh",
34             "type": "shell"
35         }
36     ]
37 }