You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
280 lines
11 KiB
280 lines
11 KiB
{
|
|
"builders": [
|
|
{
|
|
"boot_command": [
|
|
" <wait>",
|
|
" <wait>",
|
|
" <wait>",
|
|
" <wait>",
|
|
" <wait>",
|
|
"c",
|
|
"<wait>",
|
|
"set gfxpayload=keep",
|
|
"<enter><wait>",
|
|
"linux /casper/vmlinuz quiet<wait>",
|
|
" autoinstall<wait>",
|
|
" ds=nocloud-net<wait>",
|
|
"\\;s=http://<wait>",
|
|
"{{.HTTPIP}}<wait>",
|
|
":{{.HTTPPort}}/<wait>",
|
|
" ---",
|
|
"<enter><wait>",
|
|
"initrd /casper/initrd<wait>",
|
|
"<enter><wait>",
|
|
"boot<enter><wait>"
|
|
],
|
|
"boot_wait": "5s",
|
|
"cpus": "{{ user `cpus` }}",
|
|
"disk_size": "{{user `disk_size`}}",
|
|
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
|
|
"guest_additions_url": "{{ user `guest_additions_url` }}",
|
|
"guest_os_type": "Ubuntu_64",
|
|
"hard_drive_interface": "sata",
|
|
"headless": "{{ user `headless` }}",
|
|
"http_directory": "{{user `http_directory`}}",
|
|
"iso_checksum": "{{user `iso_checksum`}}",
|
|
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
|
|
"memory": "{{ user `memory` }}",
|
|
"output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-virtualbox",
|
|
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
|
|
"ssh_password": "vagrant",
|
|
"ssh_port": 22,
|
|
"ssh_timeout": "10000s",
|
|
"ssh_username": "vagrant",
|
|
"type": "virtualbox-iso",
|
|
"virtualbox_version_file": ".vbox_version",
|
|
"vm_name": "{{ user `template` }}"
|
|
},
|
|
{
|
|
"boot_command": [
|
|
" <wait>",
|
|
" <wait>",
|
|
" <wait>",
|
|
" <wait>",
|
|
" <wait>",
|
|
"c",
|
|
"<wait>",
|
|
"set gfxpayload=keep",
|
|
"<enter><wait>",
|
|
"linux /casper/vmlinuz quiet<wait>",
|
|
" autoinstall<wait>",
|
|
" ds=nocloud-net<wait>",
|
|
"\\;s=http://<wait>",
|
|
"{{.HTTPIP}}<wait>",
|
|
":{{.HTTPPort}}/<wait>",
|
|
" ---",
|
|
"<enter><wait>",
|
|
"initrd /casper/initrd<wait>",
|
|
"<enter><wait>",
|
|
"boot<enter><wait>"
|
|
],
|
|
"boot_wait": "5s",
|
|
"cpus": "{{ user `cpus` }}",
|
|
"disk_adapter_type": "sata",
|
|
"disk_size": "{{user `disk_size`}}",
|
|
"guest_os_type": "ubuntu-64",
|
|
"headless": "{{ user `headless` }}",
|
|
"http_directory": "{{user `http_directory`}}",
|
|
"iso_checksum": "{{user `iso_checksum`}}",
|
|
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
|
|
"memory": "{{ user `memory` }}",
|
|
"output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-vmware",
|
|
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
|
|
"ssh_password": "vagrant",
|
|
"ssh_port": 22,
|
|
"ssh_timeout": "10000s",
|
|
"ssh_username": "vagrant",
|
|
"tools_upload_flavor": "linux",
|
|
"type": "vmware-iso",
|
|
"vm_name": "{{ user `template` }}",
|
|
"vmx_data": {
|
|
"cpuid.coresPerSocket": "1",
|
|
"ethernet0.pciSlotNumber": "32"
|
|
},
|
|
"vmx_remove_ethernet_interfaces": true
|
|
},
|
|
{
|
|
"boot_command": [
|
|
" <wait>",
|
|
" <wait>",
|
|
" <wait>",
|
|
" <wait>",
|
|
" <wait>",
|
|
"c",
|
|
"<wait>",
|
|
"set gfxpayload=keep",
|
|
"<enter><wait>",
|
|
"linux /casper/vmlinuz quiet<wait>",
|
|
" autoinstall<wait>",
|
|
" ds=nocloud-net<wait>",
|
|
"\\;s=http://<wait>",
|
|
"{{.HTTPIP}}<wait>",
|
|
":{{.HTTPPort}}/<wait>",
|
|
" ---",
|
|
"<enter><wait>",
|
|
"initrd /casper/initrd<wait>",
|
|
"<enter><wait>",
|
|
"boot<enter><wait>"
|
|
],
|
|
"boot_wait": "5s",
|
|
"cpus": "{{ user `cpus` }}",
|
|
"disk_size": "{{user `disk_size`}}",
|
|
"guest_os_type": "ubuntu",
|
|
"http_directory": "{{user `http_directory`}}",
|
|
"iso_checksum": "{{user `iso_checksum`}}",
|
|
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
|
|
"memory": "{{ user `memory` }}",
|
|
"output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-parallels",
|
|
"parallels_tools_flavor": "lin",
|
|
"prlctl_version_file": ".prlctl_version",
|
|
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
|
|
"ssh_password": "vagrant",
|
|
"ssh_port": 22,
|
|
"ssh_timeout": "10000s",
|
|
"ssh_username": "vagrant",
|
|
"type": "parallels-iso",
|
|
"vm_name": "{{ user `template` }}"
|
|
},
|
|
{
|
|
"boot_command": [
|
|
" <wait>",
|
|
" <wait>",
|
|
" <wait>",
|
|
" <wait>",
|
|
" <wait>",
|
|
"c",
|
|
"<wait>",
|
|
"set gfxpayload=keep",
|
|
"<enter><wait>",
|
|
"linux /casper/vmlinuz quiet<wait>",
|
|
" autoinstall<wait>",
|
|
" ds=nocloud-net<wait>",
|
|
"\\;s=http://<wait>",
|
|
"{{.HTTPIP}}<wait>",
|
|
":{{.HTTPPort}}/<wait>",
|
|
" ---",
|
|
"<enter><wait>",
|
|
"initrd /casper/initrd<wait>",
|
|
"<enter><wait>",
|
|
"boot<enter><wait>"
|
|
],
|
|
"boot_wait": "5s",
|
|
"cpus": "{{ user `cpus` }}",
|
|
"disk_size": "{{user `disk_size`}}",
|
|
"headless": "{{ user `headless` }}",
|
|
"http_directory": "{{user `http_directory`}}",
|
|
"iso_checksum": "{{user `iso_checksum`}}",
|
|
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
|
|
"memory": "{{ user `memory` }}",
|
|
"output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-qemu",
|
|
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
|
|
"ssh_password": "vagrant",
|
|
"ssh_port": 22,
|
|
"ssh_timeout": "10000s",
|
|
"ssh_username": "vagrant",
|
|
"type": "qemu",
|
|
"vm_name": "{{ user `template` }}"
|
|
},
|
|
{
|
|
"boot_command": [
|
|
" <wait>",
|
|
" <wait>",
|
|
" <wait>",
|
|
" <wait>",
|
|
" <wait>",
|
|
"c",
|
|
"<wait>",
|
|
"set gfxpayload=keep",
|
|
"<enter><wait>",
|
|
"linux /casper/vmlinuz quiet<wait>",
|
|
" autoinstall<wait>",
|
|
" ds=nocloud-net<wait>",
|
|
"\\;s=http://<wait>",
|
|
"{{.HTTPIP}}<wait>",
|
|
":{{.HTTPPort}}/<wait>",
|
|
" ---",
|
|
"<enter><wait>",
|
|
"initrd /casper/initrd<wait>",
|
|
"<enter><wait>",
|
|
"boot<enter><wait>"
|
|
],
|
|
"boot_wait": "5s",
|
|
"communicator": "ssh",
|
|
"cpus": "{{ user `cpus` }}",
|
|
"disk_size": "{{user `disk_size`}}",
|
|
"enable_secure_boot": false,
|
|
"generation": "{{user `hyperv_generation`}}",
|
|
"http_directory": "{{user `http_directory`}}",
|
|
"iso_checksum": "{{user `iso_checksum`}}",
|
|
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
|
|
"memory": "{{user `memory`}}",
|
|
"output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-hyperv",
|
|
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
|
|
"ssh_password": "vagrant",
|
|
"ssh_port": 22,
|
|
"ssh_timeout": "10000s",
|
|
"ssh_username": "vagrant",
|
|
"switch_name": "{{user `hyperv_switch`}}",
|
|
"type": "hyperv-iso",
|
|
"vm_name": "{{ user `template` }}"
|
|
}
|
|
],
|
|
"post-processors": [
|
|
{
|
|
"output": "{{ user `build_directory` }}/{{user `box_basename`}}.{{.Provider}}.box",
|
|
"type": "vagrant"
|
|
}
|
|
],
|
|
"provisioners": [
|
|
{
|
|
"environment_vars": [
|
|
"HOME_DIR=/home/vagrant",
|
|
"http_proxy={{user `http_proxy`}}",
|
|
"https_proxy={{user `https_proxy`}}",
|
|
"no_proxy={{user `no_proxy`}}"
|
|
],
|
|
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E sh -eux '{{.Path}}'",
|
|
"expect_disconnect": true,
|
|
"scripts": [
|
|
"{{template_dir}}/scripts/update.sh",
|
|
"{{template_dir}}/../_common/motd.sh",
|
|
"{{template_dir}}/../_common/sshd.sh",
|
|
"{{template_dir}}/scripts/networking.sh",
|
|
"{{template_dir}}/scripts/sudoers.sh",
|
|
"{{template_dir}}/scripts/vagrant.sh",
|
|
"{{template_dir}}/../_common/virtualbox.sh",
|
|
"{{template_dir}}/scripts/vmware.sh",
|
|
"{{template_dir}}/../_common/parallels.sh",
|
|
"{{template_dir}}/scripts/hyperv.sh",
|
|
"{{template_dir}}/scripts/cleanup.sh",
|
|
"{{template_dir}}/../_common/minimize.sh"
|
|
],
|
|
"type": "shell"
|
|
}
|
|
],
|
|
"variables": {
|
|
"box_basename": "ubuntu-21.04",
|
|
"build_directory": "../../builds",
|
|
"build_timestamp": "{{isotime \"20060102150405\"}}",
|
|
"cpus": "2",
|
|
"disk_size": "65536",
|
|
"git_revision": "__unknown_git_revision__",
|
|
"guest_additions_url": "",
|
|
"headless": "",
|
|
"http_directory": "{{template_dir}}/http",
|
|
"http_proxy": "{{env `http_proxy`}}",
|
|
"https_proxy": "{{env `https_proxy`}}",
|
|
"hyperv_generation": "2",
|
|
"hyperv_switch": "bento",
|
|
"iso_checksum": "6e207960c3b9fdabd95c98e1b3b61b72328223ea787f56fe5bfe8f2898f48d96",
|
|
"iso_name": "hirsute-live-server-amd64.iso",
|
|
"memory": "1024",
|
|
"mirror": "http://cdimage.ubuntu.com",
|
|
"mirror_directory": "ubuntu-server/daily-live/20210318",
|
|
"name": "ubuntu-21.04",
|
|
"no_proxy": "{{env `no_proxy`}}",
|
|
"preseed_path": "preseed.cfg",
|
|
"template": "ubuntu-21.04-amd64",
|
|
"version": "TIMESTAMP"
|
|
}
|
|
}
|
|
|