{
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"{{template_dir}}/scripts/ansible.sh",
"{{template_dir}}/scripts/vagrant.sh"
]
},
{
"type": "shell",
"only": ["virtualbox-iso"],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "{{template_dir}}/scripts/vbox.sh"
},
{
"type": "file",
"source": "{{template_dir}}/../roles/",
"destination": "/tmp/packer-provisioner-ansible-local/roles/"
},
{
"type": "ansible-local",
"playbook_file": "{{template_dir}}/../vagrant.yml",
"role_paths": [
"{{pwd}}/roles/chronos",
"{{pwd}}/roles/collectd",
"{{pwd}}/roles/common",
"{{pwd}}/roles/consul",
"{{pwd}}/roles/consul-template",
"{{pwd}}/roles/dnsmasq",
"{{pwd}}/roles/docker",
"{{pwd}}/roles/handlers",
"{{pwd}}/roles/haproxy",
"{{pwd}}/roles/logrotate",
"{{pwd}}/roles/logstash",
"{{pwd}}/roles/marathon",
"{{pwd}}/roles/mesos",
"{{pwd}}/roles/nginx",
"{{pwd}}/roles/vault",
"{{pwd}}/roles/zookeeper"
],
"extra_arguments": ["--tags", "bootstrap"]
},
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "{{template_dir}}/scripts/cleanup.sh"
}
],
"builders": [
{
"type": "virtualbox-iso",
"boot_command": [
"<tab> text ks=http://{{.HTTPIP}}:{{.HTTPPort}}/vagrant.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 20480,
"guest_os_type": "RedHat_64",
"headless": false,
"http_directory": "{{template_dir}}/kickstarts",
"iso_urls": [
"iso/CentOS-7-x86_64-Minimal-1503-01.iso",
"http://centos.mirrors.hoobly.com/7.1.1503/isos/x86_64/CentOS-7-x86_64-Minimal-1503-01.iso"
],
"iso_checksum_type": "sha256",
"iso_checksum": "7cf1ac8da13f54d6be41e3ccf228dc5bb35792f515642755ff4780d5714d4278",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"virtualbox_version_file": ".vbox_version",
"vm_name": "microservices-infrastructure-0.3.2-x86_64",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "512"],
["modifyvm", "{{.Name}}", "--cpus", "2"]
]
}
],
"post-processors": [
{
"type": "vagrant",
"output": "builds/VirtualBox-microservices-infrastructure-0.3.2.box"
},
{
"type": "atlas",
"only": ["virtualbox-iso"],
"token": "{{user `atlas_token`}}",
"artifact": "brianhicks/mi",
"artifact_type": "vagrant.box",
"metadata": {
"created_at": "{{timestamp}}",
"provider": "virtualbox"
}
}
]
}

| "provisioners": [ | |
| { | |
| "type": "shell", | |
| "scripts": [ | |
| "scripts/base.sh", | |
| "scripts/virtualbox.sh", | |
| "scripts/vmware.sh", | |
| "scripts/vagrant.sh", | |
| "scripts/dep.sh", | |
| "scripts/cleanup.sh", | |
| "scripts/zerodisk.sh" | |
| ], |
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/b65159de-233f-4691-97a0-214a205141f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.