Switch global-jjb jobs to use mvn35
[releng/builder.git] / packer / templates / robot.json
1 {
2   "variables": {
3     "base_image": null,
4     "distro": null,
5     "cloud_auth_url": null,
6     "cloud_user": null,
7     "cloud_pass": null,
8     "cloud_network": null,
9     "cloud_tenant": null,
10     "cloud_user_data": null,
11     "ssh_user": null,
12     "ssh_proxy_host": ""
13   },
14   "builders": [
15     {
16       "name": "vexxhost",
17       "image_name": "ZZCI - {{user `distro`}} - robot - {{isotime \"20060102-1504\"}}",
18       "source_image_name": "{{user `base_image`}}",
19       "type": "openstack",
20       "identity_endpoint": "{{user `cloud_auth_url`}}",
21       "username": "{{user `cloud_user`}}",
22       "password": "{{user `cloud_pass`}}",
23       "tenant_name": "{{user `cloud_tenant`}}",
24       "domain_name": "Default",
25       "region": "ca-ymq-1",
26       "availability_zone": "ca-ymq-2",
27       "networks": [
28         "{{user `cloud_network`}}"
29       ],
30       "user_data_file": "{{user `cloud_user_data`}}",
31       "ssh_username": "{{user `ssh_user`}}",
32       "ssh_proxy_host": "{{user `ssh_proxy_host`}}",
33       "flavor": "v1-standard-1",
34       "metadata": {
35         "ci_managed": "yes"
36       }
37     }
38   ],
39   "provisioners": [
40     {
41       "type": "shell",
42       "scripts": [
43         "common-packer/provision/install-python.sh"
44       ],
45       "execute_command": "chmod +x {{ .Path }}; if [ \"$UID\" == \"0\" ]; then {{ .Vars }} '{{ .Path }}'; else {{ .Vars }} sudo -E '{{ .Path }}'; fi"
46     },
47     {
48       "type": "ansible",
49       "playbook_file": "provision/robot.yaml",
50       "ansible_env_vars": [
51         "ANSIBLE_NOCOWS=1",
52         "ANSIBLE_PIPELINING=True",
53         "ANSIBLE_ROLES_PATH=../lf-ansible/roles",
54         "ANSIBLE_CALLBACK_WHITELIST=profile_tasks",
55         "ANSIBLE_STDOUT_CALLBACK=debug"
56       ]
57     }
58   ]
59 }