Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
Cleaned up code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlesmithjr committed Sep 20, 2018
1 parent 25c6873 commit 78d5d10
Show file tree
Hide file tree
Showing 11 changed files with 374 additions and 354 deletions.
30 changes: 17 additions & 13 deletions centos.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"vm_ssh_username": "",
"vm_vcpu": ""
},
"builders": [{
"builders": [
{
"boot_command": [
"<tab> {{ user `boot_command_prefix` }}=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos/ks.cfg <enter><wait>"
],
Expand Down Expand Up @@ -63,17 +64,20 @@
}
}
],
"provisioners": [{
"type": "shell",
"scripts": [
"scripts/base.sh",
"scripts/vagrant.sh",
"scripts/virtualbox.sh",
"scripts/vmware.sh",
"scripts/cleanup.sh"
]
}],
"post-processors": [{
"provisioners": [
{
"type": "shell",
"scripts": [
"scripts/base.sh",
"scripts/vagrant.sh",
"scripts/virtualbox.sh",
"scripts/vmware.sh",
"scripts/cleanup.sh"
]
}
],
"post-processors": [
{
"compression_level": "{{ user `compression_level` }}",
"output": "{{ user `vm_name` }}-{{.Provider}}-{{ timestamp }}.box",
"type": "vagrant"
Expand All @@ -84,4 +88,4 @@
"strip_path": true
}
]
}
}
91 changes: 46 additions & 45 deletions centos_esx.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,52 +23,53 @@
"vm_ssh_username": "",
"vm_vcpu": ""
},
"builders": [{
"boot_command": [
"<tab> {{ user `boot_command_prefix` }}=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos/ks.cfg <enter><wait>"
],
"disk_adapter_type": "{{ user ` vm_disk_adapter_type` }}",
"disk_size": "{{ user `vm_disk_size` }}",
"disk_type_id": "thin",
"guest_os_type": "{{ user `vm_guest_os_type` }}",
"http_directory": "http",
"iso_checksum_type": "{{ user `iso_checksum_type` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_url": "{{ user `iso_url` }}",
"name": "{{ user `vm_name` }}-{{ timestamp }}",
"output_directory": "{{ user `vm_name` }}-{{ timestamp }}",
"remote_datastore": "{{ user `vcenter_datastore` }}",
"remote_host": "{{ user `esxi_remote_host` }}",
"remote_password": "{{ user `esxi_remote_password` }}",
"remote_type": "esx5",
"remote_username": "{{ user `esxi_remote_username` }}",
"shutdown_command": "echo '/sbin/halt -h -p' > shutdown.sh; echo 'packer'|sudo -S bash 'shutdown.sh'",
"ssh_password": "{{ user `vm_ssh_password` }}",
"ssh_username": "{{ user `vm_ssh_username` }}",
"ssh_wait_timeout": "60m",
"type": "vmware-iso",
"vm_name": "{{ user `vm_name` }}-{{ timestamp }}",
"vmx_data": {
"memsize": "{{ user `vm_memory` }}",
"numvcpus": "{{ user `vm_vcpu` }}",
"builders": [
{
"boot_command": [
"<tab> {{ user `boot_command_prefix` }}=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos/ks.cfg <enter><wait>"
],
"disk_adapter_type": "{{ user ` vm_disk_adapter_type` }}",
"disk_size": "{{ user `vm_disk_size` }}",
"disk_type_id": "thin",
"guest_os_type": "{{ user `vm_guest_os_type` }}",
"http_directory": "http",
"iso_checksum_type": "{{ user `iso_checksum_type` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_url": "{{ user `iso_url` }}",
"name": "{{ user `vm_name` }}-{{ timestamp }}",
"output_directory": "{{ user `vm_name` }}-{{ timestamp }}",
"remote_datastore": "{{ user `vcenter_datastore` }}",
"remote_host": "{{ user `esxi_remote_host` }}",
"remote_password": "{{ user `esxi_remote_password` }}",
"remote_type": "esx5",
"remote_username": "{{ user `esxi_remote_username` }}",
"shutdown_command": "echo '/sbin/halt -h -p' > shutdown.sh; echo 'packer'|sudo -S bash 'shutdown.sh'",
"ssh_password": "{{ user `vm_ssh_password` }}",
"ssh_username": "{{ user `vm_ssh_username` }}",
"ssh_wait_timeout": "60m",
"type": "vmware-iso",
"vm_name": "{{ user `vm_name` }}-{{ timestamp }}",
"vmx_data": {
"memsize": "{{ user `vm_memory` }}",
"numvcpus": "{{ user `vm_vcpu` }}",

"ethernet0.networkName": "{{ user `vm_network` }}",
"ethernet0.present": "TRUE",
"ethernet0.startConnected": "TRUE",
"ethernet0.virtualDev": "vmxnet3",
"ethernet0.addressType": "generated",
"ethernet0.wakeOnPcktRcv": "FALSE"
"ethernet0.networkName": "{{ user `vm_network` }}",
"ethernet0.present": "TRUE",
"ethernet0.startConnected": "TRUE",
"ethernet0.virtualDev": "vmxnet3",
"ethernet0.addressType": "generated",
"ethernet0.wakeOnPcktRcv": "FALSE"
}
}
],
"provisioners": [
{
"type": "shell",
"scripts": ["scripts/base.sh", "scripts/vmware.sh", "scripts/cleanup.sh"]
}
}],
"provisioners": [{
"type": "shell",
"scripts": [
"scripts/base.sh",
"scripts/vmware.sh",
"scripts/cleanup.sh"
]
}],
"post-processors": [{
],
"post-processors": [
{
"datacenter": "{{ user `vcenter_datacenter` }}",
"host": "{{ user `vcenter_host` }}",
"insecure": "{{ user `vcenter_insecure`}}",
Expand All @@ -82,4 +83,4 @@
"strip_path": true
}
]
}
}
67 changes: 34 additions & 33 deletions centos_fusion_esx.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,39 +21,40 @@
"vm_ssh_username": "",
"vm_vcpu": ""
},
"builders": [{
"boot_command": [
"<tab> {{ user `boot_command_prefix` }}=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos/ks.cfg <enter><wait>"
],
"disk_adapter_type": "{{ user ` vm_disk_adapter_type` }}",
"disk_size": "{{ user `vm_disk_size` }}",
"disk_type_id": 0,
"headless": true,
"http_directory": "http",
"iso_checksum_type": "{{ user `iso_checksum_type` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_url": "{{ user `iso_url` }}",
"name": "{{ user `vm_name` }}-{{ timestamp }}",
"shutdown_command": "echo '/sbin/halt -h -p' > shutdown.sh; echo 'packer'|sudo -S bash 'shutdown.sh'",
"ssh_password": "{{ user `vm_ssh_password` }}",
"ssh_username": "{{ user `vm_ssh_username` }}",
"ssh_wait_timeout": "60m",
"type": "vmware-iso",
"vm_name": "{{ user `vm_name` }}-{{ timestamp }}",
"vmx_data": {
"memsize": "{{ user `vm_memory` }}",
"numvcpus": "{{ user `vm_vcpu` }}"
"builders": [
{
"boot_command": [
"<tab> {{ user `boot_command_prefix` }}=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos/ks.cfg <enter><wait>"
],
"disk_adapter_type": "{{ user ` vm_disk_adapter_type` }}",
"disk_size": "{{ user `vm_disk_size` }}",
"disk_type_id": 0,
"headless": true,
"http_directory": "http",
"iso_checksum_type": "{{ user `iso_checksum_type` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_url": "{{ user `iso_url` }}",
"name": "{{ user `vm_name` }}-{{ timestamp }}",
"shutdown_command": "echo '/sbin/halt -h -p' > shutdown.sh; echo 'packer'|sudo -S bash 'shutdown.sh'",
"ssh_password": "{{ user `vm_ssh_password` }}",
"ssh_username": "{{ user `vm_ssh_username` }}",
"ssh_wait_timeout": "60m",
"type": "vmware-iso",
"vm_name": "{{ user `vm_name` }}-{{ timestamp }}",
"vmx_data": {
"memsize": "{{ user `vm_memory` }}",
"numvcpus": "{{ user `vm_vcpu` }}"
}
}
}],
"provisioners": [{
"type": "shell",
"scripts": [
"scripts/base.sh",
"scripts/vmware.sh",
"scripts/cleanup.sh"
]
}],
"post-processors": [{
],
"provisioners": [
{
"type": "shell",
"scripts": ["scripts/base.sh", "scripts/vmware.sh", "scripts/cleanup.sh"]
}
],
"post-processors": [
{
"cluster": "{{ user `vcenter_cluster` }}",
"datacenter": "{{ user `vcenter_datacenter` }}",
"datastore": "{{ user `vcenter_datastore` }}",
Expand All @@ -80,4 +81,4 @@
"strip_path": true
}
]
}
}
30 changes: 17 additions & 13 deletions debian.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"vm_ssh_username": "",
"vm_vcpu": ""
},
"builders": [{
"builders": [
{
"boot_command": [
"{{ user `boot_command_prefix` }}",
"install <wait>",
Expand Down Expand Up @@ -91,17 +92,20 @@
}
}
],
"provisioners": [{
"type": "shell",
"scripts": [
"scripts/base.sh",
"scripts/vagrant.sh",
"scripts/virtualbox.sh",
"scripts/vmware.sh",
"scripts/cleanup.sh"
]
}],
"post-processors": [{
"provisioners": [
{
"type": "shell",
"scripts": [
"scripts/base.sh",
"scripts/vagrant.sh",
"scripts/virtualbox.sh",
"scripts/vmware.sh",
"scripts/cleanup.sh"
]
}
],
"post-processors": [
{
"compression_level": "{{ user `compression_level` }}",
"output": "{{ user `vm_name` }}-{{.Provider}}-{{ timestamp }}.box",
"type": "vagrant"
Expand All @@ -112,4 +116,4 @@
"strip_path": true
}
]
}
}
Loading

0 comments on commit 78d5d10

Please sign in to comment.