Readd configs

This commit is contained in:
Stefan Reimer 2022-06-20 12:51:18 +02:00
parent 4afeeef91d
commit 8711dd27d8
17 changed files with 304 additions and 0 deletions

82
configs/alpine.conf Normal file
View File

@ -0,0 +1,82 @@
# vim: ts=2 et:
# NOTE: If you are using alpine-cloud-images to build public cloud images
# for something/someone other than Alpine Linux, you *MUST* override
# *AT LEAST* the 'project' setting with a unique identifier string value
# via a "config overlay" to avoid image import and publishing collisions.
project = "https://alpinelinux.org/cloud"
# all build configs start with these
Default {
project = ${project}
# image name/description components
name = [ alpine ]
description = [ Alpine Linux ]
motd {
welcome = "Welcome to Alpine!"
wiki = "The Alpine Wiki contains a large amount of how-to guides and general\n"\
"information about administrating Alpine systems.\n"\
"See <https://wiki.alpinelinux.org/>."
version_notes = "Release Notes:\n"\
"* <https://alpinelinux.org/posts/Alpine-{version}.0/released.html>"
release_notes = "* <https://alpinelinux.org/posts/Alpine-{release}/released.html>"
}
# initial provisioning script and data directory
scripts = [ setup ]
script_dirs = [ setup.d ]
size = 1G
login = alpine
local_format = qcow2
# image access
access.PUBLIC = true
# image publication
regions.ALL = true
}
# profile build matrix
Dimensions {
version {
"3.16" { include required("version/3.16.conf") }
"3.15" { include required("version/3.15.conf") }
"3.14" { include required("version/3.14.conf") }
"3.13" { include required("version/3.13.conf") }
edge { include required("version/edge.conf") }
}
arch {
x86_64 { include required("arch/x86_64.conf") }
aarch64 { include required("arch/aarch64.conf") }
}
firmware {
bios { include required("firmware/bios.conf") }
uefi { include required("firmware/uefi.conf") }
}
bootstrap {
tiny { include required("bootstrap/tiny.conf") }
cloudinit { include required("bootstrap/cloudinit.conf") }
}
cloud {
aws { include required("cloud/aws.conf") }
}
}
# all build configs merge these at the very end
Mandatory {
name = [ "r{revision}" ]
description = [ "- https://alpinelinux.org/cloud" ]
# final motd message
motd.motd_change = "You may change this message by editing /etc/motd."
# final provisioning script
scripts = [ cleanup ]
}

15
configs/arch/aarch64.conf Normal file
View File

@ -0,0 +1,15 @@
# vim: ts=2 et:
name = [aarch64]
arch_name = aarch64
# aarch64 is UEFI only
EXCLUDE = [bios]
qemu.machine_type = virt
qemu.args = [
[-cpu, cortex-a57],
[-boot, d],
[-device, virtio-gpu-pci],
[-device, usb-ehci],
[-device, usb-kbd],
]

9
configs/arch/x86_64.conf Normal file
View File

@ -0,0 +1,9 @@
# vim: ts=2 et:
name = [x86_64]
arch_name = x86_64
# TODO: until we have a image metadata service, let's avoid UEFI
EXCLUDE = [uefi]
qemu.machine_type = null
qemu.args = null

View File

@ -0,0 +1,16 @@
# vim: ts=2 et:
name = [cloudinit]
bootstrap_name = cloud-init
bootstrap_url = "https://cloud-init.io/"
# start cloudinit images with 3.15
EXCLUDE = ["3.12", "3.13", "3.14"]
packages {
cloud-init = true
openssh-server-pam = true
e2fsprogs-extra = true # for resize2fs
}
services.default.cloud-init-hotplugd = true
scripts = [ setup-cloudinit ]

37
configs/cloud/aws.conf Normal file
View File

@ -0,0 +1,37 @@
# vim: ts=2 et:
cloud_name = Amazon Web Services
cloud_image_url = "https://{region}.console.aws.amazon.com/ec2/home#Images:visibility=public-images;imageId={image_id}",
cloud_launch_url = "https://{region}.console.aws.amazon.com/ec2/home#launchAmi={image_id}"
builder = qemu
ntp_server = 169.254.169.123
kernel_modules {
ena = true
nvme = true
}
kernel_options {
"nvme_core.io_timeout=4294967295" = true
}
initfs_features {
ena = true
nvme = true
}
access.PUBLIC = true
regions.ALL = true
WHEN {
aarch64 {
# new AWS aarch64 default...
kernel_modules.gpio_pl061 = true
initfs_features.gpio_pl061 = true
WHEN {
"3.14 3.13 3.12" {
# ...but not supported for older versions
kernel_modules.gpio_pl061 = false
initfs_features.gpio_pl061 = false
}
}
}
}

View File

@ -0,0 +1,7 @@
# vim: ts=2 et:
name = [bios]
firmware_name = BIOS
bootloader = extlinux
packages.syslinux = --no-scripts
qemu.firmware = null

View File

@ -0,0 +1,18 @@
# vim: ts=2 et:
name = [uefi]
firmware_name = UEFI
bootloader = grub-efi
packages {
grub-efi = --no-scripts
dosfstools = true
}
WHEN {
aarch64 {
qemu.firmware = work/firmware/uefi-aarch64.bin
}
x86_64 {
qemu.firmware = work/firmware/uefi-x86_64.bin
}
}

1
configs/images.conf Symbolic link
View File

@ -0,0 +1 @@
alpine.conf

View File

@ -0,0 +1,3 @@
# vim: ts=2 et:
include required("base/2.conf")

View File

@ -0,0 +1,3 @@
# vim: ts=2 et:
include required("base/2.conf")

View File

@ -0,0 +1,7 @@
# vim: ts=2 et:
include required("base/3.conf")
motd {
sudo_deprecated = "NOTE: 'sudo' has been deprecated, please use 'doas' instead."
}

View File

@ -0,0 +1,7 @@
# vim: ts=2 et:
include required("base/4.conf")
motd {
sudo_removed = "NOTE: 'sudo' is no longer installed by default, please use 'doas' instead."
}

View File

@ -0,0 +1,60 @@
# vim: ts=2 et:
repos {
"https://dl-cdn.alpinelinux.org/alpine/v{version}/main" = true
"https://dl-cdn.alpinelinux.org/alpine/v{version}/community" = true
"https://dl-cdn.alpinelinux.org/alpine/v{version}/testing" = false
}
packages {
alpine-base = true
linux-virt = true
alpine-mirrors = true
chrony = true
e2fsprogs = true
openssh = true
sudo = true
tzdata = true
}
services {
sysinit {
devfs = true
dmesg = true
hwdrivers = true
mdev = true
}
boot {
acpid = true
bootmisc = true
hostname = true
hwclock = true
modules = true
swap = true
sysctl = true
syslog = true
}
default {
chronyd = true
networking = true
sshd = true
}
shutdown {
killprocs = true
mount-ro = true
savecache = true
}
}
kernel_modules {
sd-mod = true
usb-storage = true
ext4 = true
}
kernel_options {
"console=ttyS0,115200n8" = true
}
initfs_features {
}

View File

@ -0,0 +1,8 @@
# vim: ts=2 et:
include required("1.conf")
packages {
# drop old alpine-mirrors
alpine-mirrors = null
}

View File

@ -0,0 +1,8 @@
# vim: ts=2 et:
include required("2.conf")
packages {
# doas will officially replace sudo in 3.16
doas = true
}

View File

@ -0,0 +1,8 @@
# vim: ts=2 et:
include required("3.conf")
packages {
# doas officially replaces sudo in 3.16
sudo = false
}

15
configs/version/edge.conf Normal file
View File

@ -0,0 +1,15 @@
# vim: ts=2 et:
include required("base/4.conf")
motd {
sudo_removed = "NOTE: 'sudo' is no longer installed by default, please use 'doas' instead."
}
# clear out inherited repos
repos = null
repos {
"https://dl-cdn.alpinelinux.org/alpine/edge/main" = true
"https://dl-cdn.alpinelinux.org/alpine/edge/community" = true
"https://dl-cdn.alpinelinux.org/alpine/edge/testing" = true
}