blob: 5bf17839f44c27c38c20e4bbe30bfd3acea22302 [file] [log] [blame]
Gary Wuab1a4c92017-08-25 06:46:17 -07001{
2 "variables": {
Jessica Wagantall79059b02018-07-20 20:30:09 -07003 "ansible_roles_path": ".galaxy",
Gary Wuab1a4c92017-08-25 06:46:17 -07004 "base_image": null,
Gary Wuab1a4c92017-08-25 06:46:17 -07005 "distro": null,
Jessica Wagantall79059b02018-07-20 20:30:09 -07006 "cloud_auth_url": null,
7 "cloud_user": null,
8 "cloud_pass": null,
9 "cloud_network": null,
10 "cloud_tenant": null,
11 "cloud_user_data": null,
12 "ssh_user": null,
13 "ssh_proxy_host": ""
Gary Wuab1a4c92017-08-25 06:46:17 -070014 },
15 "builders": [
16 {
Jessica Wagantall79059b02018-07-20 20:30:09 -070017 "name": "vexxhost",
Jessica Wagantall6d248e42018-10-25 15:43:41 -070018 "image_name": "{{user `distro`}} - memcached - {{user `arch`}} - {{isotime \"20180101-1003\"}}",
Gary Wuab1a4c92017-08-25 06:46:17 -070019 "source_image_name": "{{user `base_image`}}",
Jessica Wagantall79059b02018-07-20 20:30:09 -070020 "type": "openstack",
21 "identity_endpoint": "{{user `cloud_auth_url`}}",
22 "username": "{{user `cloud_user`}}",
23 "password": "{{user `cloud_pass`}}",
24 "tenant_name": "{{user `cloud_tenant`}}",
25 "domain_name": "Default",
26 "region": "ca-ymq-1",
Gary Wuab1a4c92017-08-25 06:46:17 -070027 "availability_zone": "ca-ymq-2",
28 "networks": [
Jessica Wagantall79059b02018-07-20 20:30:09 -070029 "{{user `cloud_network`}}"
Gary Wuab1a4c92017-08-25 06:46:17 -070030 ],
Jessica Wagantall79059b02018-07-20 20:30:09 -070031 "user_data_file": "{{user `cloud_user_data`}}",
32 "ssh_username": "{{user `ssh_user`}}",
33 "ssh_proxy_host": "{{user `ssh_proxy_host`}}",
34 "flavor": "v1-standard-1",
35 "metadata": {
36 "ci_managed": "yes"
37 }
Gary Wuab1a4c92017-08-25 06:46:17 -070038 }
39 ],
40 "provisioners": [
41 {
42 "type": "shell",
Gary Wuab1a4c92017-08-25 06:46:17 -070043 "scripts": [
Jessica Wagantall79059b02018-07-20 20:30:09 -070044 "common-packer/provision/install-python.sh"
Gary Wuab1a4c92017-08-25 06:46:17 -070045 ],
46 "execute_command": "chmod +x {{ .Path }}; if [ \"$UID\" == \"0\" ]; then {{ .Vars }} '{{ .Path }}'; else {{ .Vars }} sudo -E '{{ .Path }}'; fi"
Jessica Wagantall79059b02018-07-20 20:30:09 -070047 },
48 {
49 "type": "shell-local",
50 "command": "./common-packer/ansible-galaxy.sh {{user `ansible_roles_path`}}"
51 },
52 {
53 "type": "ansible",
54 "playbook_file": "provision/memcached.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 ]
Gary Wuab1a4c92017-08-25 06:46:17 -070062 }
63 ]
64}