-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathopensuse-leap-15.6-ppc64le-openstack.json.pkr.hcl
78 lines (72 loc) · 1.96 KB
/
opensuse-leap-15.6-ppc64le-openstack.json.pkr.hcl
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
packer {
required_plugins {
qemu = {
source = "github.com/hashicorp/qemu"
version = "~> 1"
}
}
}
variable "image_name" {
type = string
default = "OpenSUSE Leap 15.6"
}
variable "mirror" {
type = string
default = "http://download.opensuse.org"
}
source "qemu" "opensuse-15" {
boot_command = [
"c<wait5>",
"linux /boot/ppc64le/linux netsetup=dhcp install=cd:/ ",
"lang=en_US autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/opensuse-leap-15.6/autoinst.xml ",
"install=http://download.opensuse.org/ports/ppc/distribution/leap/15.6/repo/oss/ ",
"textmode=1<enter> ",
"initrd /boot/ppc64le/initrd<enter> ",
"boot<enter> "
]
boot_key_interval = "30ms"
boot_wait = "6s"
disk_interface = "virtio-scsi"
disk_size = "4096"
format = "raw"
headless = true
http_directory = "http"
iso_checksum = "file:https://download.opensuse.org/distribution/leap/15.6/iso/openSUSE-Leap-15.6-DVD-ppc64le-Media.iso.sha256"
iso_url = "${var.mirror}/ports/ppc/distribution/leap/15.6/iso/openSUSE-Leap-15.6-DVD-ppc64le-Media.iso"
machine_type = "pseries"
qemu_binary = "qemu-kvm"
qemuargs = [
[
"-m",
"2048M"
],
[
"-boot",
"strict=on"
]
]
ssh_password = "opensuse"
ssh_port = 22
ssh_username = "root"
ssh_wait_timeout = "10000s"
vnc_bind_address = "0.0.0.0"
vnc_port_min = 5901
vnc_port_max = 5901
vm_name = "opensuse-leap-15.6"
}
build {
sources = [
"source.qemu.opensuse-15"
]
provisioner "shell" {
execute_command = "{{ .Vars }} sudo -S -E sh '{{ .Path }}'"
scripts = [
"scripts/common/sshd.sh",
"scripts/opensuse/sudoers.sh",
"scripts/opensuse/zypper-locks.sh",
"scripts/opensuse/remove-dvd-source.sh",
"scripts/opensuse/openstack.sh",
"scripts/common/minimize.sh"
]
}
}