{
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'",
"override": {
"virtualbox-iso": {
"scripts": [
"scripts/base.sh",
"scripts/vagrant.sh",
"scripts/virtualbox.sh",
"scripts/cleanup.sh",
"scripts/zerodisk.sh"
]
},
"vmware-iso": {
"scripts": [
"scripts/base.sh",
"scripts/vagrant.sh",
"scripts/cleanup.sh",
"scripts/zerodisk.sh"
]
}
}
}
],
"post-processors": [
{
"type": "vagrant",
"override": {
"virtualbox": {
"output": "ubuntu-12-04-x64-virtualbox.box"
},
"vmware": {
"output": "ubuntu-12-04-x64-vmware.box"
}
}
}
],
"builders": [
{
"type": "virtualbox-iso",
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz<wait>",
" auto<wait>",
" console-setup/ask_detect=false<wait>",
" console-setup/layoutcode=us<wait>",
" console-setup/modelcode=pc105<wait>",
" debconf/frontend=noninteractive<wait>",
" debian-installer=en_US<wait>",
" fb=false<wait>",
" initrd=/install/initrd.gz<wait>",
" kbd-chooser/method=us<wait>",
" keyboard-configuration/layout=USA<wait>",
" keyboard-configuration/variant=USA<wait>",
" locale=en_US<wait>",
" netcfg/get_hostname=ubuntu-1204<wait>",
" netcfg/get_domain=vagrantup.com<wait>",
" noapic<wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<wait>",
" -- <wait>",
"<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_os_type": "Ubuntu_64",
"http_directory": "http",
"iso_url": "http://releases.ubuntu.com/12.04/ubuntu-12.04.4-server-amd64.iso",
"iso_checksum": "3aeb42816253355394897ae80d99a9ba56217c0e98e05294b51f0f5b13bceb54",
"iso_checksum_type": "sha256",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'shutdown -P now' > /tmp/shutdown.sh; echo 'vagrant'|sudo -S sh '/tmp/shutdown.sh'",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "512" ],
[ "modifyvm", "{{.Name}}", "--cpus", "1" ]
]
},
{
"type": "vmware-iso",
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz<wait>",
" auto<wait>",
" console-setup/ask_detect=false<wait>",
" console-setup/layoutcode=us<wait>",
" console-setup/modelcode=pc105<wait>",
" debconf/frontend=noninteractive<wait>",
" debian-installer=en_US<wait>",
" fb=false<wait>",
" initrd=/install/initrd.gz<wait>",
" kbd-chooser/method=us<wait>",
" keyboard-configuration/layout=USA<wait>",
" keyboard-configuration/variant=USA<wait>",
" locale=en_US<wait>",
" netcfg/get_hostname=ubuntu-1204<wait>",
" netcfg/get_domain=vagrantup.com<wait>",
" noapic<wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<wait>",
" -- <wait>",
"<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_os_type": "linux",
"http_directory": "http",
"iso_url": "http://releases.ubuntu.com/12.04/ubuntu-12.04.3-server-amd64.iso",
"iso_checksum": "61d5e67c70d97b33c13537461a0b153b41304ef412bb0e9d813bb157068c3c65",
"iso_checksum_type": "sha256",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'shutdown -P now' > /tmp/shutdown.sh; echo 'vagrant'|sudo -S sh '/tmp/shutdown.sh'",
"vmx_data": {
"memsize": "512",
"numvcpus": "1",
"cpuid.coresPerSocket": "1"
}
}
]
}
没有合适的资源?快使用搜索试试~ 我知道了~
packer-templates, 这里知识库已经完成更新.zip
共34个文件
sh:23个
cfg:4个
json:4个
需积分: 5 0 下载量 58 浏览量
2019-10-10
05:51:32
上传
评论
收藏 21KB ZIP 举报
温馨提示
packer-templates, 这里知识库已经完成更新 这里知识库已经完成更新也许你更喜欢官方版的Ubuntu和 CentOS现在有官方的Ubuntu和 CentOS Vagrant在 Vagrant云 。 这些箱子定期更新以拥有较新的软件包。 如果你不需要构建自定义框,也许你可以以使用这些
资源推荐
资源详情
资源评论
收起资源包目录
packer-templates.zip (34个子文件)
packer-templates-master
.gitignore 19B
README.rst 778B
centos-6.4
http
ks.cfg 848B
scripts
vmware.sh 393B
cleanup.sh 153B
base.sh 181B
virtualbox.sh 216B
zerodisk.sh 46B
vagrant.sh 270B
template.json 3KB
centos-6.5
http
ks.cfg 848B
scripts
vmware.sh 393B
cleanup.sh 153B
base.sh 122B
virtualbox.sh 216B
zerodisk.sh 46B
vagrant.sh 270B
template.json 3KB
LICENSE 10KB
ubuntu-13.10
http
preseed.cfg 1KB
scripts
vmware.sh 128B
cleanup.sh 383B
base.sh 278B
virtualbox.sh 42B
zerodisk.sh 45B
vagrant.sh 278B
template.json 4KB
ubuntu-12.04
http
preseed.cfg 1KB
scripts
cleanup.sh 383B
base.sh 278B
virtualbox.sh 318B
zerodisk.sh 45B
vagrant.sh 278B
template.json 4KB
共 34 条
- 1
资源评论
weixin_38743737
- 粉丝: 376
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功