Guest User

Untitled

a guest
Nov 14th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. {
  2. "provisioners": [
  3. {
  4. "type": "file",
  5. "source": "./files/",
  6. "destination": "/tmp/"
  7. },
  8. {
  9. "type": "shell",
  10. "execute_command": "chmod +x {{.Path}}; {{.Vars}} sudo -E -S bash -x '{{.Path}}'",
  11. "script": "./scripts/chroot_{{user `script`}}.sh"
  12. }
  13. ],
  14. "builders": [
  15. {
  16. "type": "osc-ebssurrogate",
  17. "access_key": "{{user `ak`}}",
  18. "secret_key": "{{user `sk`}}",
  19. "region": "{{user `region`}}",
  20. "ssh_username": "centos",
  21. "instance_type": "c4.large",
  22. "source_ami": "{{ user `omi`}}",
  23. "skip_region_validation": true,
  24. "endpoints": {
  25. "ec2": "{{user `endpoint`}}"
  26. },
  27. "ami_virtualization_type": "hvm",
  28. "ami_name": "{{user `ami_name`}}",
  29. "availability_zone": "{{user `region`}}a",
  30. "launch_block_device_mappings": [
  31. {
  32. "volume_type": "io1",
  33. "iops": 300,
  34. "device_name": "/dev/xvdf",
  35. "delete_on_termination": true,
  36. "volume_size": 10
  37. }
  38. ],
  39. "ami_root_device": {
  40. "delete_on_termination": true,
  41. "source_device_name": "/dev/xvdf",
  42. "device_name": "/dev/sda1",
  43. "volume_size": 10,
  44. "volume_type": "standard"
  45. }
  46. }
  47. ],
  48. "variables": {
  49. "ami_name": "{{env `AMI_NAME`}}",
  50. "region": "{{env `REGION`}}",
  51. "ak": "{{env `OSC_ACCESS_KEY`}}",
  52. "sk": "{{env `OSC_SECRET_KEY`}}",
  53. "script": "{{env `SCRIPT_BASE`}}",
  54. "omi": "{{env `SOURCE_OMI`}}",
  55. "endpoint": "{{env `ENDPOINT`}}"
  56. }
  57. }
Add Comment
Please, Sign In to add comment