From 480760b54858616a74a15b9710ed893b78433cae Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 18 Apr 2016 17:12:53 -0700 Subject: [PATCH] Add new omios box for r151018 --- omnios-r151018.json | 235 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 235 insertions(+) create mode 100644 omnios-r151018.json diff --git a/omnios-r151018.json b/omnios-r151018.json new file mode 100644 index 000000000..7e9aee95b --- /dev/null +++ b/omnios-r151018.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-r151018", + "build_timestamp": "{{isotime \"20060102150405\"}}", + "git_revision": "__unknown_git_revision__", + "headless": "", + "http_proxy": "{{env `http_proxy`}}", + "https_proxy": "{{env `https_proxy`}}", + "iso_checksum": "562f0e35010717c43169bb2dc15169ec08c62bbf", + "iso_checksum_type": "sha1", + "iso_name": "OmniOS_Text_r151018.iso", + "metadata": "floppy/dummy_metadata.json", + "mirror": "http://omnios.omniti.com", + "mirror_directory": "media", + "name": "omnios-r151018", + "no_proxy": "{{env `no_proxy`}}", + "template": "omnios-r151018", + "version": "2.2.TIMESTAMP" + } +}