From f3784eb5291384c3a0f5a490ed7eef7ec96bea3f Mon Sep 17 00:00:00 2001 From: Seth Thomas Date: Sat, 3 Oct 2015 10:07:26 +0100 Subject: [PATCH] Adding OmniOS r151014 --- omnios-r151014.json | 235 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 235 insertions(+) create mode 100644 omnios-r151014.json diff --git a/omnios-r151014.json b/omnios-r151014.json new file mode 100644 index 000000000..3851c4f6e --- /dev/null +++ b/omnios-r151014.json @@ -0,0 +1,235 @@ +{ + "builders": [ + { + "boot_command": [ + "", + "1", + "", + "", + "", + "", + "omnios-vagrant", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "root", + "passwd", + "vagrant", + "vagrant", + "ipadm create-if e1000g0", + "ipadm create-addr -T dhcp e1000g0/v4", + "echo 'nameserver 8.8.8.8' > /etc/resolv.conf", + "cp /etc/nsswitch.dns /etc/nsswitch.conf", + "sed -i -e 's/PermitRootLogin no/PermitRootLogin yes/' /etc/ssh/sshd_config", + "svcadm restart ssh" + ], + "boot_wait": "30s", + "disk_size": 40960, + "guest_os_type": "OpenSolaris_64", + "headless": "{{ user `headless` }}", + "iso_checksum": "{{user `iso_checksum`}}", + "iso_checksum_type": "{{user `iso_checksum_type`}}", + "iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}", + "output_directory": "packer-{{user `template`}}-virtualbox", + "shutdown_command": "/usr/sbin/shutdown -g 0 -y -i 5", + "ssh_password": "vagrant", + "ssh_port": 22, + "ssh_username": "root", + "type": "virtualbox-iso", + "vboxmanage": [ + [ + "modifyvm", + "{{.Name}}", + "--memory", + "1024" + ], + [ + "modifyvm", + "{{.Name}}", + "--cpus", + "1" + ] + ], + "virtualbox_version_file": ".vbox_version", + "vm_name": "{{ user `template` }}" + }, + { + "boot_command": [ + "", + "1", + "", + "", + "", + "", + "", + "", + "omnios-vagrant", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "root", + "passwd", + "vagrant", + "vagrant", + "ipadm create-if e1000g0", + "ipadm create-addr -T dhcp e1000g0/v4", + "echo 'nameserver 8.8.8.8' > /etc/resolv.conf", + "cp /etc/nsswitch.dns /etc/nsswitch.conf", + "sed -i -e 's/PermitRootLogin no/PermitRootLogin yes/' /etc/ssh/sshd_config", + "svcadm restart ssh" + ], + "boot_wait": "30s", + "disk_size": 40960, + "floppy_files": [ + "floppy/omnios/README.TXT" + ], + "guest_os_type": "solaris11-64", + "headless": "{{ user `headless` }}", + "iso_checksum": "{{user `iso_checksum`}}", + "iso_checksum_type": "{{user `iso_checksum_type`}}", + "iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}", + "output_directory": "packer-{{user `template`}}-vmware", + "shutdown_command": "/usr/sbin/shutdown -g 0 -y -i 5", + "ssh_password": "vagrant", + "ssh_port": 22, + "ssh_username": "root", + "tools_upload_flavor": "solaris", + "type": "vmware-iso", + "vm_name": "{{ user `template` }}", + "vmx_data": { + "cpuid.coresPerSocket": "1", + "memsize": "1024", + "numvcpus": "1" + } + }, + { + "boot_command": [ + "", + "1", + "", + "", + "", + "", + "", + "", + "omnios-vagrant", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "root", + "passwd", + "vagrant", + "vagrant", + "ipadm create-if e1000g0", + "ipadm create-addr -T dhcp e1000g0/v4", + "echo 'nameserver 8.8.8.8' > /etc/resolv.conf", + "cp /etc/nsswitch.dns /etc/nsswitch.conf", + "sed -i -e 's/PermitRootLogin no/PermitRootLogin yes/' /etc/ssh/sshd_config", + "svcadm restart ssh" + ], + "boot_wait": "30s", + "disk_size": 40960, + "guest_os_type": "opensolaris", + "hard_drive_interface": "ide", + "iso_checksum": "{{user `iso_checksum`}}", + "iso_checksum_type": "{{user `iso_checksum_type`}}", + "iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}", + "output_directory": "packer-{{user `template`}}-parallels", + "parallels_tools_mode": "disable", + "prlctl": [ + [ + "set", + "{{.Name}}", + "--memsize", + "1024" + ], + [ + "set", + "{{.Name}}", + "--cpus", + "1" + ] + ], + "shutdown_command": "/usr/sbin/shutdown -g 0 -y -i 5", + "ssh_password": "vagrant", + "ssh_port": 22, + "ssh_username": "root", + "type": "parallels-iso", + "vm_name": "{{ user `template` }}" + } + ], + "post-processors": [ + { + "compression_level": 9, + "output": "builds/{{user `box_basename`}}.{{.Provider}}.box", + "override": { + "parallels": { + "vagrantfile_template": "vagrantfile_templates/parallels/omnios.rb" + } + }, + "type": "vagrant" + } + ], + "provisioners": [ + { + "destination": "/tmp/bento-metadata.json", + "source": "{{user `metadata`}}", + "type": "file" + }, + { + "environment_vars": [ + "HOME_DIR=/home/vagrant", + "http_proxy={{user `http_proxy`}}", + "https_proxy={{user `https_proxy`}}", + "no_proxy={{user `no_proxy`}}" + ], + "execute_command": "export {{.Vars}} && sh '{{.Path}}'", + "scripts": [ + "scripts/common/metadata.sh", + "scripts/omnios/vmtools.sh", + "scripts/omnios/postinstall.sh" + ], + "type": "shell" + } + ], + "variables": { + "arch": "64", + "box_basename": "omnios-r151014", + "build_timestamp": "{{isotime \"20060102150405\"}}", + "git_revision": "__unknown_git_revision__", + "headless": "", + "http_proxy": "{{env `http_proxy`}}", + "https_proxy": "{{env `https_proxy`}}", + "iso_checksum": "2dffd9acda9ad3eb22f0bf6bdff1717b2ee4b8b4", + "iso_checksum_type": "sha1", + "iso_name": "OmniOS_Text_r151014.iso", + "metadata": "floppy/dummy_metadata.json", + "mirror": "http://omnios.omniti.com", + "mirror_directory": "media", + "name": "omnios-r151014", + "no_proxy": "{{env `no_proxy`}}", + "template": "omnios-r151014", + "version": "2.2.TIMESTAMP" + } +}