blob: 621c997e1088d1d64e51f0c32fcc1ac4e88dd0f9 [file] [log] [blame]
Jeremy Phelpsf7d8c952018-04-17 09:23:15 -05001{
2 "variables": {
3 "ansible_roles_path": ".galaxy",
Anil Belur0931f242022-04-23 09:02:23 +10004 "arch": "x86_64",
Jeremy Phelpsf7d8c952018-04-17 09:23:15 -05005 "base_image": null,
6 "distro": null,
7 "cloud_auth_url": null,
8 "cloud_user": null,
9 "cloud_pass": null,
10 "cloud_network": null,
11 "cloud_tenant": null,
12 "cloud_user_data": null,
Anil Belur0931f242022-04-23 09:02:23 +100013 "flavor": "v3-standard-2",
Jeremy Phelpsf7d8c952018-04-17 09:23:15 -050014 "ssh_user": null,
15 "ssh_proxy_host": ""
16 },
17 "builders": [
18 {
Anil Belura2d7fbb2021-03-18 15:17:00 +100019 "name": "openstack",
Anil Belura108f102018-09-27 19:09:50 +053020 "image_name": "ZZCI - {{user `distro`}} - helm - {{user `arch`}} - {{isotime \"20060102-150405.000\"}}",
21 "instance_name": "{{user `distro`}}-builder-{{uuid}}",
Jeremy Phelpsf7d8c952018-04-17 09:23:15 -050022 "source_image_name": "{{user `base_image`}}",
23 "type": "openstack",
24 "identity_endpoint": "{{user `cloud_auth_url`}}",
25 "username": "{{user `cloud_user`}}",
26 "password": "{{user `cloud_pass`}}",
27 "tenant_name": "{{user `cloud_tenant`}}",
28 "domain_name": "Default",
29 "region": "ca-ymq-1",
Andrew Grimberga6b750c2023-05-03 08:47:44 -070030 "networks": ["{{user `cloud_network`}}"],
Jeremy Phelpsf7d8c952018-04-17 09:23:15 -050031 "user_data_file": "{{user `cloud_user_data`}}",
32 "ssh_username": "{{user `ssh_user`}}",
33 "ssh_proxy_host": "{{user `ssh_proxy_host`}}",
Anil Belur0931f242022-04-23 09:02:23 +100034 "flavor": "{{user `flavor`}}",
Jeremy Phelpsf7d8c952018-04-17 09:23:15 -050035 "metadata": {
36 "ci_managed": "yes"
37 }
38 }
39 ],
40 "provisioners": [
41 {
42 "type": "shell",
Anil Belurb8115c82023-03-22 22:14:28 +053043 "scripts": ["common-packer/provision/install-python.sh"],
Jeremy Phelpsf7d8c952018-04-17 09:23:15 -050044 "execute_command": "chmod +x {{ .Path }}; if [ \"$UID\" == \"0\" ]; then {{ .Vars }} '{{ .Path }}'; else {{ .Vars }} sudo -E '{{ .Path }}'; fi"
45 },
46 {
47 "type": "shell-local",
48 "command": "./common-packer/ansible-galaxy.sh {{user `ansible_roles_path`}}"
49 },
50 {
51 "type": "ansible",
Anil Belurb8115c82023-03-22 22:14:28 +053052 "command": "./common-packer/ansible-playbook.sh",
53 "skip_version_check": true,
Jeremy Phelpsf7d8c952018-04-17 09:23:15 -050054 "playbook_file": "provision/helm.yaml",
55 "ansible_env_vars": [
56 "ANSIBLE_NOCOWS=1",
57 "ANSIBLE_PIPELINING=True",
58 "ANSIBLE_ROLES_PATH={{user `ansible_roles_path`}}",
59 "ANSIBLE_CALLBACK_WHITELIST=profile_tasks",
60 "ANSIBLE_STDOUT_CALLBACK=debug"
61 ]
62 }
63 ]
64}