Skip to content

Commit b24d514

Browse files
committed
Move and copy files to new filenames
1 parent 20306d6 commit b24d514

File tree

5 files changed

+263
-0
lines changed

5 files changed

+263
-0
lines changed
File renamed without changes.
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
### Localization
19+
# Locale sets language and country.
20+
d-i debian-installer/locale string en_US.UTF-8
21+
d-i debian-installer/country string IN
22+
23+
# Keyboard selection.
24+
d-i keymap select us
25+
d-i keyboard-configuration/xkb-keymap select us
26+
27+
### Network configuration
28+
d-i netcfg/choose_interface select auto
29+
d-i netcfg/get_hostname string systemvm
30+
d-i netcfg/get_domain string apache.org
31+
d-i netcfg/wireless_wep string
32+
33+
d-i hw-detect/load_firmware boolean true
34+
35+
### Mirror settings
36+
d-i mirror/country string manual
37+
d-i mirror/http/hostname string deb.debian.org
38+
d-i mirror/http/directory string /debian
39+
d-i mirror/http/proxy string
40+
41+
### Apt setup
42+
d-i apt-setup/cdrom/set-first false
43+
d-i apt-setup/security-updates boolean true
44+
d-i apt-setup/services-select multiselect security, updates
45+
d-i apt-setup/security_host string security.debian.org
46+
d-i apt-setup/local0/source boolean false
47+
d-i apt-setup/multiarch string i386
48+
d-i apt-setup/backports boolean true
49+
d-i apt-setup/contrib boolean true
50+
d-i apt-setup/multiverse boolean true
51+
d-i apt-setup/universe boolean true
52+
53+
### Clock and time zone setup
54+
d-i clock-setup/utc boolean true
55+
d-i time/zone string UTC
56+
d-i clock-setup/ntp boolean true
57+
58+
### Partitioning
59+
d-i partman-auto/disk string /dev/vda
60+
d-i partman-auto/method string regular
61+
d-i partman-auto/expert_recipe string \
62+
boot-root :: \
63+
400 60 400 ext2 \
64+
$primary{ } $bootable{ } \
65+
method{ format } format{ } \
66+
use_filesystem{ } filesystem{ ext2 } \
67+
mountpoint{ /boot } \
68+
. \
69+
256 1000 256 linux-swap \
70+
method{ swap } format{ } \
71+
. \
72+
2240 40 4000 ext4 \
73+
method{ format } format{ } \
74+
use_filesystem{ } filesystem{ ext4 } \
75+
mountpoint{ / } \
76+
.
77+
78+
d-i partman-md/confirm boolean true
79+
d-i partman-partitioning/confirm_write_new_label boolean true
80+
d-i partman/choose_partition select finish
81+
d-i partman/confirm boolean true
82+
d-i partman/confirm_nooverwrite boolean true
83+
84+
### Base system installation
85+
# ...
86+
87+
### Account setup
88+
d-i passwd/root-login boolean false
89+
d-i passwd/root-password password password
90+
d-i passwd/root-password-again password password
91+
d-i passwd/user-fullname string Cloud User
92+
d-i passwd/username string cloud
93+
d-i passwd/user-password password cloud
94+
d-i passwd/user-password-again password cloud
95+
d-i user-setup/encrypt-home boolean false
96+
d-i user-setup/allow-password-weak boolean true
97+
d-i passwd/user-default-groups string audio cdrom video admin
98+
99+
### Package selection
100+
tasksel tasksel/first multiselect ssh-server
101+
d-i pkgsel/include string openssh-server ntp acpid sudo bzip2 openssl
102+
# Allowed values: none, safe-upgrade, full-upgrade
103+
d-i pkgsel/upgrade select full-upgrade
104+
d-i pkgsel/update-policy select none
105+
106+
popularity-contest popularity-contest/participate boolean false
107+
108+
### Boot loader installation
109+
d-i grub-installer/only_debian boolean true
110+
d-i grub-installer/bootdev string default
111+
d-i finish-install/reboot_in_progress note
112+
113+
#### Advanced options

tools/appliance/systemvmtemplate/template.json renamed to tools/appliance/systemvmtemplate/template-base_aarch64-target_aarch64.json

File renamed without changes.
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"_license": "Apache License 2.0",
3+
"builders": [
4+
{
5+
"accelerator": "kvm",
6+
"boot_command": [
7+
"<esc><wait>",
8+
"install <wait>",
9+
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>",
10+
"debian-installer=en_US.UTF-8 <wait>",
11+
"auto <wait>",
12+
"language=en locale=en_US.UTF-8 <wait>",
13+
"kbd-chooser/method=us <wait>",
14+
"keyboard-configuration/xkb-keymap=us <wait>",
15+
"netcfg/get_hostname=systemvm <wait>",
16+
"netcfg/get_domain=apache.org <wait>",
17+
"country=IN keymap=us <wait>",
18+
"fb=false <wait>",
19+
"debconf/frontend=noninteractive <wait>",
20+
"console-setup/ask_detect=false <wait>",
21+
"console-keymaps-at/keymap=us <wait>",
22+
"<enter><wait>"
23+
],
24+
"boot_wait": "5s",
25+
"disk_interface": "virtio",
26+
"disk_size": "5000M",
27+
"format": "qcow2",
28+
"headless": true,
29+
"http_directory": "http",
30+
"iso_checksum": "sha512:224cd98011b9184e49f858a46096c6ff4894adff8945ce89b194541afdfd93b73b4666b0705234bd4dff42c0a914fdb6037dd0982efb5813e8a553d8e92e6f51",
31+
"iso_url": "https://cdimage.debian.org/debian-cd/11.6.0/amd64/iso-cd/debian-11.6.0-amd64-netinst.iso",
32+
"net_device": "virtio-net",
33+
"output_directory": "../dist",
34+
"qemuargs": [
35+
[
36+
"-m",
37+
"500M"
38+
],
39+
[
40+
"-smp",
41+
"1"
42+
]
43+
],
44+
"shutdown_command": "sudo halt -p",
45+
"ssh_password": "cloud",
46+
"ssh_timeout": "30m",
47+
"ssh_username": "cloud",
48+
"type": "qemu",
49+
"vm_name": "systemvmtemplate"
50+
}
51+
],
52+
"description": "CloudStack SystemVM template",
53+
"provisioners": [
54+
{
55+
"execute_command": "echo 'cloud' | sudo -u root -S bash {{.Path}}",
56+
"scripts": [
57+
"scripts/apt_upgrade.sh",
58+
"scripts/configure_grub.sh",
59+
"scripts/configure_locale.sh",
60+
"scripts/configure_networking.sh",
61+
"scripts/configure_acpid.sh",
62+
"scripts/install_systemvm_packages.sh",
63+
"scripts/configure_conntrack.sh",
64+
"scripts/authorized_keys.sh",
65+
"scripts/configure_persistent_config.sh",
66+
"scripts/configure_login.sh",
67+
"../cloud_scripts_shar_archive.sh",
68+
"scripts/configure_systemvm_services.sh",
69+
"scripts/cleanup.sh",
70+
"scripts/finalize.sh"
71+
],
72+
"type": "shell"
73+
}
74+
]
75+
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"_license": "Apache License 2.0",
3+
"builders": [
4+
{
5+
"accelerator": "kvm",
6+
"boot_command": [
7+
"<esc><wait>",
8+
"install <wait>",
9+
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>",
10+
"debian-installer=en_US.UTF-8 <wait>",
11+
"auto <wait>",
12+
"language=en locale=en_US.UTF-8 <wait>",
13+
"kbd-chooser/method=us <wait>",
14+
"keyboard-configuration/xkb-keymap=us <wait>",
15+
"netcfg/get_hostname=systemvm <wait>",
16+
"netcfg/get_domain=apache.org <wait>",
17+
"country=IN keymap=us <wait>",
18+
"fb=false <wait>",
19+
"debconf/frontend=noninteractive <wait>",
20+
"console-setup/ask_detect=false <wait>",
21+
"console-keymaps-at/keymap=us <wait>",
22+
"<enter><wait>"
23+
],
24+
"boot_wait": "5s",
25+
"disk_interface": "virtio",
26+
"disk_size": "5000M",
27+
"format": "qcow2",
28+
"headless": true,
29+
"http_directory": "http",
30+
"iso_checksum": "sha512:224cd98011b9184e49f858a46096c6ff4894adff8945ce89b194541afdfd93b73b4666b0705234bd4dff42c0a914fdb6037dd0982efb5813e8a553d8e92e6f51",
31+
"iso_url": "https://cdimage.debian.org/debian-cd/11.6.0/amd64/iso-cd/debian-11.6.0-amd64-netinst.iso",
32+
"net_device": "virtio-net",
33+
"output_directory": "../dist",
34+
"qemuargs": [
35+
[
36+
"-m",
37+
"500M"
38+
],
39+
[
40+
"-smp",
41+
"1"
42+
]
43+
],
44+
"shutdown_command": "sudo halt -p",
45+
"ssh_password": "cloud",
46+
"ssh_timeout": "30m",
47+
"ssh_username": "cloud",
48+
"type": "qemu",
49+
"vm_name": "systemvmtemplate"
50+
}
51+
],
52+
"description": "CloudStack SystemVM template",
53+
"provisioners": [
54+
{
55+
"execute_command": "echo 'cloud' | sudo -u root -S bash {{.Path}}",
56+
"scripts": [
57+
"scripts/apt_upgrade.sh",
58+
"scripts/configure_grub.sh",
59+
"scripts/configure_locale.sh",
60+
"scripts/configure_networking.sh",
61+
"scripts/configure_acpid.sh",
62+
"scripts/install_systemvm_packages.sh",
63+
"scripts/configure_conntrack.sh",
64+
"scripts/authorized_keys.sh",
65+
"scripts/configure_persistent_config.sh",
66+
"scripts/configure_login.sh",
67+
"../cloud_scripts_shar_archive.sh",
68+
"scripts/configure_systemvm_services.sh",
69+
"scripts/cleanup.sh",
70+
"scripts/finalize.sh"
71+
],
72+
"type": "shell"
73+
}
74+
]
75+
}

0 commit comments

Comments
 (0)