|
83 | 83 | "disk_type_id": "{{user `disk_type_id`}}", |
84 | 84 | "disk_adapter_type": "scsi", |
85 | 85 | "boot_wait": "{{user `boot_wait`}}", |
86 | | - "http_directory": "./packer/ova/linux/{{user `distro_name`}}/http/", |
87 | 86 | "guest_os_type": "{{user `guest_os_type`}}", |
88 | 87 | "headless": "{{user `headless`}}", |
89 | 88 | "iso_url": "{{user `iso_url`}}", |
|
92 | 91 | "ssh_username": "{{user `ssh_username`}}", |
93 | 92 | "ssh_password": "{{user `ssh_password`}}", |
94 | 93 | "ssh_timeout": "4h", |
| 94 | + "http_directory": "{{ user `http_directory`}}", |
| 95 | + "floppy_dirs": "{{ user `floppy_dirs`}}", |
95 | 96 | "boot_command": [ |
96 | 97 | "{{user `boot_command_prefix`}}", |
97 | | - "http://{{ .HTTPIP }}:{{ .HTTPPort }}", |
| 98 | + "{{user `boot_media_path`}}", |
98 | 99 | "{{user `boot_command_suffix`}}" |
99 | 100 | ], |
100 | 101 | "shutdown_command": "echo '{{user `ssh_password`}}' | sudo -S -E sh -c '{{user `shutdown_command`}}'", |
|
127 | 128 | "disk_type_id": "{{user `disk_type_id`}}", |
128 | 129 | "disk_adapter_type": "scsi", |
129 | 130 | "boot_wait": "{{user `boot_wait`}}", |
130 | | - "http_directory": "./packer/ova/linux/{{user `distro_name`}}/http/", |
131 | 131 | "guest_os_type": "{{user `guest_os_type`}}", |
132 | 132 | "headless": "{{user `headless`}}", |
133 | 133 | "iso_url": "{{user `iso_url`}}", |
|
136 | 136 | "ssh_username": "{{user `ssh_username`}}", |
137 | 137 | "ssh_password": "{{user `ssh_password`}}", |
138 | 138 | "ssh_timeout": "4h", |
| 139 | + "http_directory": "{{ user `http_directory`}}", |
| 140 | + "floppy_dirs": "{{ user `floppy_dirs`}}", |
139 | 141 | "boot_command": [ |
140 | 142 | "{{user `boot_command_prefix`}}", |
141 | | - "http://{{ .HTTPIP }}:{{ .HTTPPort }}", |
| 143 | + "{{user `boot_media_path`}}", |
142 | 144 | "{{user `boot_command_suffix`}}" |
143 | 145 | ], |
144 | 146 | "shutdown_command": "echo '{{user `ssh_password`}}' | sudo -S -E sh -c 'usermod -L {{user `ssh_username`}} && {{user `shutdown_command`}}'", |
|
185 | 187 | "disk_controller_type": "{{user `disk_controller_type`}}", |
186 | 188 | "guest_os_type": "{{user `vsphere_guest_os_type`}}", |
187 | 189 | "boot_wait": "{{user `boot_wait`}}", |
188 | | - "http_directory": "./packer/ova/linux/{{user `distro_name`}}/http/", |
189 | 190 | "iso_urls": "{{user `iso_url`}}", |
190 | 191 | "iso_checksum": "{{user `iso_checksum_type`}}:{{user `iso_checksum`}}", |
191 | 192 | "communicator": "ssh", |
|
199 | 200 | "disk_thin_provisioned": "{{user `disk_thin_provisioned`}}" |
200 | 201 | } |
201 | 202 | ], |
| 203 | + "http_directory": "{{ user `http_directory`}}", |
| 204 | + "floppy_dirs": "{{ user `floppy_dirs`}}", |
202 | 205 | "boot_command": [ |
203 | 206 | "{{user `boot_command_prefix`}}", |
204 | | - "http://{{ .HTTPIP }}:{{ .HTTPPort }}", |
| 207 | + "{{user `boot_media_path`}}", |
205 | 208 | "{{user `boot_command_suffix`}}" |
206 | 209 | ], |
207 | 210 | "shutdown_command": "echo '{{user `ssh_password`}}' | sudo -S -E sh -c '{{user `shutdown_command`}}'", |
|
238 | 241 | "disk_controller_type": "{{user `disk_controller_type`}}", |
239 | 242 | "guest_os_type": "{{user `vsphere_guest_os_type`}}", |
240 | 243 | "boot_wait": "{{user `boot_wait`}}", |
241 | | - "http_directory": "./packer/ova/linux/{{user `distro_name`}}/http/", |
242 | 244 | "iso_urls": "{{user `iso_url`}}", |
243 | 245 | "iso_checksum": "{{user `iso_checksum_type`}}:{{user `iso_checksum`}}", |
244 | 246 | "communicator": "ssh", |
|
251 | 253 | "disk_thin_provisioned": "{{user `disk_thin_provisioned`}}" |
252 | 254 | } |
253 | 255 | ], |
| 256 | + "http_directory": "{{ user `http_directory`}}", |
| 257 | + "floppy_dirs": "{{ user `floppy_dirs`}}", |
254 | 258 | "boot_command": [ |
255 | 259 | "{{user `boot_command_prefix`}}", |
256 | | - "http://{{ .HTTPIP }}:{{ .HTTPPort }}", |
| 260 | + "{{user `boot_media_path`}}", |
257 | 261 | "{{user `boot_command_suffix`}}" |
258 | 262 | ], |
259 | 263 | "shutdown_command": "echo '{{user `ssh_password`}}' | sudo -S -E sh -c 'usermod -L {{user `ssh_username`}} && {{user `shutdown_command`}}'", |
|
0 commit comments