Skip to content

Commit

Permalink
Merge pull request #7 from gswallow/master
Browse files Browse the repository at this point in the history
Add rhel-7.4
  • Loading branch information
jmassara authored Jun 30, 2018
2 parents 414686d + 9c070d4 commit 365de1e
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rhel-7.4-vbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"type": "virtualbox-iso",
"guest_os_type": "RedHat_64",
"vm_name": "{{user `vm_name`}}",
"disk_size": "8192",
"disk_size": "12288",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "1024"],
["modifyvm", "{{.Name}}", "--cpus", "2"],
Expand Down
57 changes: 57 additions & 0 deletions rhel-7.4-vmvware.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"variables": {
"vm_name": "rhel-7.4-vmware",
"iso_url": "{{env `ISO_URL`}}",
"iso_sha256": "431a58c8c0351803a608ffa56948c5a7861876f78ccbe784724dd8c987ff7000"
},

"builders": [{
"headless": true,
"type": "vmware-iso",
"vm_name": "{{user `vm_name`}}",
"guest_os_type": "rhel7-64",
"vmdk_name": "rhel7",
"disk_size": "12288",
"vmx_data": {
"numvcpus": 2,
"cpuid.coresPerSocket": 1,
"memsize": 2048,
"ethernet0.virtualDev": "vmxnet3",
"virtualHW.version": "11"
},
"iso_checksum_type": "sha256",
"iso_url": "{{user `iso_url`}}",
"iso_checksum": "{{user `iso_sha256`}}",
"tools_upload_flavor": "linux",
"tools_upload_path": "/tmp/vmware_tools_{{.Flavor}}.iso",
"http_directory": "http",
"ssh_wait_timeout": "20m",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
"boot_wait": "5s",
"boot_command": [
"<esc><wait>",
"vmlinuz initrd=initrd.img inst.geoloc=0 rd.driver.blacklist=dm-multipath net.ifnames=0 biosdevname=0 ",
"ks=http://{{.HTTPIP}}:{{.HTTPPort}}/vmware-ks.cfg",
"<enter>"
]
}],

"provisioners": [{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/vagrant.sh",
"scripts/vmware.sh",
"scripts/sshd.sh",
"scripts/cleanup.sh"
]
}],

"post-processors": [{
"type": "vagrant",
"output": "{{user `vm_name`}}.box",
"keep_input_artifact": false
}]
}

0 comments on commit 365de1e

Please sign in to comment.