Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. {
  2. "variables": {
  3. "ssh_keypair_name": "staging-0.1",
  4. "ssh_username": "ubuntu",
  5. "aws_subnet_id": "{{env `AWS_SUBNET_ID`}}",
  6. "aws_vpc_id": "{{env `AWS_VPC_ID`}}",
  7. "aws_region": null,
  8. "aws_instance_type": null,
  9. "aws_source_ami": null,
  10. "aws_target_ami": null,
  11. "aws_associate_public_ip_address": "false",
  12. "aws_enhanced_networking": "false",
  13. "appversion": "",
  14. "build_host": "",
  15. "repository": "",
  16. "package_type": "",
  17. "packages": "",
  18. "upgrade": "",
  19. "configDir": null
  20. },
  21. "builders": [{
  22. "type": "amazon-ebs",
  23. "ssh_keypair_name": "staging-0.1",
  24. "ssh_username": "ubuntu",
  25. "subnet_id": "{{user `aws_subnet_id`}}",
  26. "vpc_id": "{{user `aws_vpc_id`}}",
  27. "region": "{{user `aws_region`}}",
  28. "ssh_pty": true,
  29. "instance_type": "{{user `aws_instance_type`}}",
  30. "source_ami": "{{user `aws_source_ami`}}",
  31. "ami_name": "{{user `aws_target_ami`}}",
  32. "associate_public_ip_address": "{{user `aws_associate_public_ip_address`}}",
  33. "enhanced_networking": "{{user `aws_enhanced_networking`}}",
  34. "tags": {
  35. "appversion": "{{user `appversion`}}",
  36. "build_host": "{{user `build_host`}}",
  37. "build_info_url": "{{user `build_info_url`}}"
  38. },
  39. "run_tags": {"Packages": "{{user `packages`}}"}
  40. }],
  41. "provisioners": [{
  42. "type": "shell",
  43. "script": "{{user `configDir`}}/install_packages.sh",
  44. "environment_vars": [
  45. "repository={{user `repository`}}",
  46. "package_type={{user `package_type`}}",
  47. "packages={{user `packages`}}",
  48. "upgrade={{user `upgrade`}}"
  49. ],
  50. "pause_before": "30s"
  51. }]
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement