This repository was archived by the owner on Jul 11, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsles.json
More file actions
123 lines (123 loc) · 4.26 KB
/
Copy pathsles.json
File metadata and controls
123 lines (123 loc) · 4.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"builders": [
{
"boot_command": [
"<esc><enter><wait>",
"linux netdevice=eth0 netsetup=dhcp install=cd:/<wait>",
" lang=en_US autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `yast_control_file`}}<wait>",
" textmode=1<wait>",
"<enter><wait>"
],
"boot_wait": "10s",
"cpus": "{{ user `cpus` }}",
"disk_size": "{{user `disk_size`}}",
"guest_os_type": "{{ user `guest_os_type` }}",
"headless": "{{ user `headless` }}",
"http_directory": "http",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_urls": [
"{{ user `iso_path` }}/{{ user `iso_name` }}",
"{{ user `iso_url` }}"
],
"memory": "{{ user `memory` }}",
"output_directory": "output-{{ user `vm_name` }}-vmware-iso",
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
"ssh_password": "{{ user `ssh_username` }}",
"ssh_port": 22,
"ssh_username": "{{ user `ssh_password` }}",
"ssh_wait_timeout": "10000s",
"tools_upload_flavor": "linux",
"type": "vmware-iso",
"vm_name": "{{ user `vm_name` }}",
"vmx_remove_ethernet_interfaces": true
},
{
"boot_command": [
"<esc><enter><wait>",
"linux netdevice=eth0 netsetup=dhcp install=cd:/<wait>",
" lang=en_US autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `yast_control_file`}}<wait>",
" textmode=1<wait>",
"<enter><wait>"
],
"boot_wait": "10s",
"cpus": "{{ user `cpus` }}",
"disk_size": "{{user `disk_size`}}",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"guest_os_type": "OpenSUSE_64",
"hard_drive_interface": "sata",
"headless": "{{ user `headless` }}",
"http_directory": "http",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_urls": [
"{{ user `iso_path` }}/{{ user `iso_name` }}",
"{{ user `iso_url` }}"
],
"memory": "{{ user `memory` }}",
"output_directory": "output-{{ user `vm_name` }}-virtualbox-iso",
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
"ssh_password": "{{ user `ssh_username` }}",
"ssh_port": 22,
"ssh_username": "{{ user `ssh_password` }}",
"ssh_wait_timeout": "10000s",
"type": "virtualbox-iso",
"vm_name": "{{ user `vm_name` }}"
}
],
"post-processors": [
{
"output": "box/{{.Provider}}/{{user `vm_name`}}.box",
"type": "vagrant"
}
],
"provisioners": [
{
"environment_vars": [
"INSTALL_VAGRANT_KEY={{user `install_vagrant_key`}}",
"http_proxy={{user `http_proxy`}}",
"https_proxy={{user `https_proxy`}}",
"ftp_proxy={{user `ftp_proxy`}}",
"rsync_proxy={{user `rsync_proxy`}}",
"no_proxy={{user `no_proxy`}}",
"all_proxy={{user `all_proxy`}}"
],
"execute_command": "echo '{{ user `ssh_password` }}' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'",
"expect_disconnect": "true",
"scripts": [
"script/sshd.sh",
"script/vagrant.sh",
"script/sudoers.sh",
"script/virtualbox.sh",
"script/vmware.sh",
"script/zypper-locks.sh",
"script/remove-dvd-source.sh",
"script/cleanup.sh"
],
"type": "shell"
}
],
"variables": {
"_DOWNLOAD_URL": "https://www.suse.com/products/server/download",
"all_proxy": "{{ env `all_proxy` }}",
"cpus": "1",
"disk_size": "40000",
"ftp_proxy": "{{env `ftp_proxy`}}",
"guest_os_type": "sles12-64",
"headless": "true",
"http_proxy": "{{ env `http_proxy` }}",
"https_proxy": "{{ env `https_proxy` }}",
"install_vagrant_key": "true",
"iso_checksum": "48408157ef667100671b22f92c3e20771ccf2100108b96e3ae83d8df30abddd5",
"iso_checksum_type": "sha256",
"iso_path": "iso",
"iso_url": "<your_url_to>/SLE-12-SP3-Server-DVD-x86_64-GM-DVD1.iso",
"memory": "4096",
"no_proxy": "{{env `no_proxy`}}",
"rsync_proxy": "{{env `rsync_proxy`}}",
"ssh_password": "vagrant",
"ssh_username": "vagrant",
"vm_name": "jeos-sles12sp3-noproxy",
"yast_control_file": "sles-12-sp3-x86_64-autoinst.xml"
}
}