mirror of https://github.com/MISP/misp-packer
chg: [20.04] Now working with Ubuntu 20.04
parent
88b62ca524
commit
5a4077ba1b
59
misp.json
59
misp.json
|
@ -4,21 +4,8 @@
|
||||||
{
|
{
|
||||||
"boot_command": [
|
"boot_command": [
|
||||||
"{{ user `boot_command_prefix` }}",
|
"{{ user `boot_command_prefix` }}",
|
||||||
"/install/vmlinuz noapic ",
|
"autoinstall ds=nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/",
|
||||||
"initrd=/install/initrd.gz ",
|
"<enter>"
|
||||||
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
|
|
||||||
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
|
|
||||||
"hostname={{ user `hostname` }} ",
|
|
||||||
"grub-installer/bootdev=/dev/sda<wait> ",
|
|
||||||
"fb=false debconf/frontend=noninteractive ",
|
|
||||||
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ",
|
|
||||||
"keyboard-configuration/variant=USA console-setup/ask_detect=false ",
|
|
||||||
"passwd/user-fullname={{ user `ssh_fullname` }} ",
|
|
||||||
"passwd/user-password={{ user `ssh_password` }} ",
|
|
||||||
"passwd/user-password-again={{ user `ssh_password` }} ",
|
|
||||||
"passwd/username={{ user `ssh_username` }} ",
|
|
||||||
"debconf/frontend=noninteractive ",
|
|
||||||
"-- <enter>"
|
|
||||||
],
|
],
|
||||||
"disk_size": "{{ user `disk_size` }}",
|
"disk_size": "{{ user `disk_size` }}",
|
||||||
"export_opts": [
|
"export_opts": [
|
||||||
|
@ -33,7 +20,7 @@
|
||||||
"guest_os_type": "Ubuntu_64",
|
"guest_os_type": "Ubuntu_64",
|
||||||
"hard_drive_interface": "sata",
|
"hard_drive_interface": "sata",
|
||||||
"headless": "{{ user `headless` }}",
|
"headless": "{{ user `headless` }}",
|
||||||
"http_directory": "preseeds",
|
"http_directory": "http",
|
||||||
"http_port_max": 9011,
|
"http_port_max": 9011,
|
||||||
"http_port_min": 9001,
|
"http_port_min": 9001,
|
||||||
"iso_checksum": "{{ user `iso_checksum` }}",
|
"iso_checksum": "{{ user `iso_checksum` }}",
|
||||||
|
@ -46,7 +33,7 @@
|
||||||
"ssh_password": "{{ user `ssh_pass` }}",
|
"ssh_password": "{{ user `ssh_pass` }}",
|
||||||
"ssh_pty": "true",
|
"ssh_pty": "true",
|
||||||
"ssh_timeout": "20m",
|
"ssh_timeout": "20m",
|
||||||
"ssh_username": "{{user `ssh_name`}}",
|
"ssh_username": "{{ user `ssh_user` }}",
|
||||||
"type": "virtualbox-iso",
|
"type": "virtualbox-iso",
|
||||||
"vboxmanage": [
|
"vboxmanage": [
|
||||||
[ "modifyvm", "{{.Name}}", "--memory", "{{user `memory`}}" ],
|
[ "modifyvm", "{{.Name}}", "--memory", "{{user `memory`}}" ],
|
||||||
|
@ -68,22 +55,17 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"boot_command": [
|
"boot_command": [
|
||||||
"<esc><esc><enter><wait>",
|
"{{ user `boot_command_prefix` }}",
|
||||||
"/install/vmlinuz noapic ",
|
"autoinstall ds=nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/",
|
||||||
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
|
"<enter>"
|
||||||
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
|
|
||||||
"hostname={{user `hostname`}} ",
|
|
||||||
"fb=false debconf/frontend=noninteractive ",
|
|
||||||
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ",
|
|
||||||
"keyboard-configuration/variant=USA console-setup/ask_detect=false ",
|
|
||||||
"initrd=/install/initrd.gz -- <enter>"
|
|
||||||
],
|
],
|
||||||
|
"boot_wait": "5s",
|
||||||
"disk_size": "{{ user `disk_size` }}",
|
"disk_size": "{{ user `disk_size` }}",
|
||||||
"guest_os_type": "ubuntu-64",
|
"guest_os_type": "ubuntu-64",
|
||||||
"headless": "{{ user `headless` }}",
|
"headless": "{{ user `headless` }}",
|
||||||
"http_directory": "preseeds",
|
"http_directory": "http",
|
||||||
"http_port_max": 9011,
|
|
||||||
"http_port_min": 9001,
|
"http_port_min": 9001,
|
||||||
|
"http_port_max": 9011,
|
||||||
"iso_checksum": "{{ user `iso_checksum` }}",
|
"iso_checksum": "{{ user `iso_checksum` }}",
|
||||||
"iso_checksum_type": "{{ user `iso_checksum_type` }}",
|
"iso_checksum_type": "{{ user `iso_checksum_type` }}",
|
||||||
"iso_urls": [
|
"iso_urls": [
|
||||||
|
@ -93,10 +75,11 @@
|
||||||
"memory": "{{ user `memory` }}",
|
"memory": "{{ user `memory` }}",
|
||||||
"shutdown_command": "echo {{user `ssh_pass`}} |sudo -S shutdown -P now",
|
"shutdown_command": "echo {{user `ssh_pass`}} |sudo -S shutdown -P now",
|
||||||
"skip_compaction": false,
|
"skip_compaction": false,
|
||||||
"ssh_password": "{{user `ssh_pass`}}",
|
|
||||||
"ssh_pty": "true",
|
"ssh_pty": "true",
|
||||||
"ssh_timeout": "20m",
|
"ssh_timeout": "30m",
|
||||||
"ssh_username": "{{user `ssh_name`}}",
|
"ssh_handshake_attempts": "90",
|
||||||
|
"ssh_username": "{{user `ssh_user`}}",
|
||||||
|
"ssh_password": "{{user `ssh_pass`}}",
|
||||||
"type": "vmware-iso",
|
"type": "vmware-iso",
|
||||||
"vm_name": "{{ user `vm_name` }}"
|
"vm_name": "{{ user `vm_name` }}"
|
||||||
}
|
}
|
||||||
|
@ -118,12 +101,12 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"execute_command": "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'",
|
"execute_command": "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'",
|
||||||
"script": "scripts/users.sh",
|
"script": "scripts/extend.sh",
|
||||||
"type": "shell"
|
"type": "shell"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"execute_command": "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'",
|
"execute_command": "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'",
|
||||||
"script": "scripts/interfaces.sh",
|
"script": "scripts/users.sh",
|
||||||
"type": "shell"
|
"type": "shell"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -136,7 +119,7 @@
|
||||||
"PACKER=1",
|
"PACKER=1",
|
||||||
"DEBIAN_FRONTEND=noninteractive"
|
"DEBIAN_FRONTEND=noninteractive"
|
||||||
],
|
],
|
||||||
"execute_command": "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -u {{user `ssh_name`}} -E -S bash '{{ .Path }}'",
|
"execute_command": "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -u {{user `ssh_user`}} -E -S bash '{{ .Path }}'",
|
||||||
"inline": [
|
"inline": [
|
||||||
"chmod u+x /tmp/INSTALL.sh",
|
"chmod u+x /tmp/INSTALL.sh",
|
||||||
"/tmp/INSTALL.sh -A -u"
|
"/tmp/INSTALL.sh -A -u"
|
||||||
|
@ -164,7 +147,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"variables": {
|
"variables": {
|
||||||
"boot_command_prefix": "<enter><wait><f6><esc><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
|
"boot_command_prefix": "<enter><enter><f6><esc><wait> ",
|
||||||
"cpus": "1",
|
"cpus": "1",
|
||||||
"desktop": "false",
|
"desktop": "false",
|
||||||
"disk_size": "25000",
|
"disk_size": "25000",
|
||||||
|
@ -180,9 +163,8 @@
|
||||||
"memory": "3072",
|
"memory": "3072",
|
||||||
"no_proxy": "{{env `no_proxy`}}",
|
"no_proxy": "{{env `no_proxy`}}",
|
||||||
"ovftool_path": "ovftool",
|
"ovftool_path": "ovftool",
|
||||||
"preseed": "preseed.cfg",
|
"ssh_fullname": "MISP User",
|
||||||
"ssh_fullname": "misp",
|
"ssh_user": "misp",
|
||||||
"ssh_name": "misp",
|
|
||||||
"ssh_pass": "Password1234",
|
"ssh_pass": "Password1234",
|
||||||
"update": "true",
|
"update": "true",
|
||||||
"vm_description": "MISP, is an open source software solution for collecting, storing, distributing and sharing cyber security indicators and threat about cyber security incidents analysis and malware analysis. MISP is designed by and for incident analysts, security and ICT professionals or malware reverser to support their day-to-day operations to share structured informations efficiently.",
|
"vm_description": "MISP, is an open source software solution for collecting, storing, distributing and sharing cyber security indicators and threat about cyber security incidents analysis and malware analysis. MISP is designed by and for incident analysts, security and ICT professionals or malware reverser to support their day-to-day operations to share structured informations efficiently.",
|
||||||
|
@ -190,4 +172,3 @@
|
||||||
"vm_version": "2.4"
|
"vm_version": "2.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue