Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. {
  2. "variables" : {
  3. "region" : "us-east-1",
  4. "source_ami" : "ami-035b3c7efe6d061d5"
  5. },
  6. "builders" : [
  7. {
  8. "type" : "amazon-ebs",
  9. "profile" : "default",
  10. "region" : "{{user `region`}}",
  11. "instance_type" : "t2.micro",
  12. "source_ami" : "{{user `source_ami`}}",
  13. "ssh_username" : "ec2-user",
  14. "ami_name" : "jenkins-master-2.176,2",
  15. "ami_description" : "Amazon Linux Image with Jenkins Server",
  16. "run_tags" : {
  17. "Name" : "packer-builder-docker"
  18. },
  19. "tags" : {
  20. "Tool" : "Packer",
  21. "Author" : "Harshita-Prachi"
  22. }
  23. }
  24. ],
  25. "provisioners" : [
  26. {
  27. "type" : "file",
  28. "source" : "./basic-security.groovy",
  29. "destination" : "/tmp/basic-security.groovy"
  30. },
  31. {
  32. "type" : "file",
  33. "source" : "./jenkins.install.UpgradeWizard.state",
  34. "destination" : "/tmp/jenkins.install.UpgradeWizard.state"
  35. },
  36. {
  37. "type" : "file",
  38. "source" : "./disable-cli.groovy",
  39. "destination" : "/tmp/disable-cli.groovy"
  40. },
  41. {
  42. "type" : "file",
  43. "source" : "./csrf-protection.groovy",
  44. "destination" : "/tmp/csrf-protection.groovy"
  45. },
  46. {
  47. "type" : "file",
  48. "source" : "./disable-jnlp.groovy",
  49. "destination" : "/tmp/disable-jnlp.groovy"
  50. },
  51. {
  52. "type" : "file",
  53. "source" : "./jenkins",
  54. "destination" : "/tmp/jenkins"
  55. },
  56. {
  57. "type" : "file",
  58. "source" : "$HOME/Downloads/jenkins-packer.pem",
  59. "destination" : "/tmp/id_rsa"
  60. },
  61. {
  62. "type" : "file",
  63. "source" : "./node-agent.groovy",
  64. "destination" : "/tmp/node-agent.groovy"
  65. },
  66. {
  67. "type" : "file",
  68. "source" : "./plugins.txt",
  69. "destination" : "/tmp/plugins.txt"
  70. },
  71. {
  72. "type" : "file",
  73. "source" : "./install-plugins.sh",
  74. "destination" : "/tmp/install-plugins.sh"
  75. },
  76. {
  77. "type" : "file",
  78. "source" : "./telegraf.conf",
  79. "destination" : "/tmp/telegraf.conf"
  80. },
  81. {
  82. "type" : "shell",
  83. "script" : "./setup.sh",
  84. "execute_command" : "sudo -E -S sh '{{ .Path }}'"
  85. }
  86. ]
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement