Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions config/files/GRMLBASE/etc/cloud/cloud.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# cloud-init configuration for Grml live system.
#
# This file was deployed via grml-live's
# ${GRML_FAI_CONFIG}/scripts/GRMLBASE/51-cloud-init script, using
# ${GRML_FAI_CONFIG}/files/GRMLBASE/etc/cloud/cloud.cfg
#
# The top level settings are used as module
# and system configuration.
# A set of users which may be applied and/or used by various modules
# when a 'default' entry is found it will reference the 'default_user'
# from the distro configuration specified below
users:
- default

# If this is set, 'root' will not be able to ssh in and they
# will get a message to login instead as the default $user
disable_root: false

# This will cause the set+update hostname module to not operate (if true)
preserve_hostname: false

apt:
# This prevents cloud-init from rewriting apt's sources.list file,
# which has been a source of surprise.
preserve_sources_list: true

# The modules that run in the 'init' stage
cloud_init_modules:
- seed_random
- bootcmd
- set_hostname
- update_hostname
- update_etc_hosts
- ssh

# The modules that run in the 'config' stage
cloud_config_modules:
- ssh-import-id
- ntp
- timezone
- disable-ec2-metadata
- runcmd

# The modules that run in the 'final' stage
cloud_final_modules:
- ssh-authkey-fingerprints
- keys-to-console
- install-hotplug
- final-message

# System and/or distro specific settings
# (not accessible to handlers/transforms)
system_info:
# This will affect which distro class gets used
distro: debian
# Default user name + that default users groups (if added/used)
default_user:
name: grml
lock_passwd: True
gecos: Grml
groups: [adm, audio, cdrom, dialout, dip, floppy, netdev, plugdev, sudo, video]
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
shell: /bin/zsh
# Other config here will be given to the distro class and/or path classes
paths:
cloud_dir: /var/lib/cloud/
templates_dir: /etc/cloud/templates/
ssh_svcname: ssh
28 changes: 0 additions & 28 deletions config/files/GRMLBASE/etc/cloud/cloud.cfg.d/42_grml.cfg

This file was deleted.

13 changes: 13 additions & 0 deletions config/files/GRMLBASE/etc/systemd/network/99-dhcp-fallback.network
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# We will match any ethernet adapter that is left unconfigured.
[Match]
Type=ether

[Network]
DHCP=yes

[DHCPv4]
# In our DHCP we trust
UseDomains=true
# Don't use duid
ClientIdentifier=mac

Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ enable getty@.service
enable gpm.service
enable grml-autoconfig.service
enable debug-shell.service
enable resolvconf.service
enable avahi-daemon.service
enable avahi-ssh.service
enable cloud-config.service
enable cloud-final.service
enable cloud-init-local.service
enable cloud-init-main.service
enable cloud-init-network.service
enable cloud-init.target
enable systemd-networkd.service
enable systemd-resolved.service

disable *
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This file was deployed via grml-live.

[Install]
WantedBy=grml-boot.target
3 changes: 1 addition & 2 deletions config/package_config/GRMLBASE
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ grml-scripts
grml-tips
hdparm
hwinfo
ifupdown
initramfs-tools
iputils-ping
iwd
Expand All @@ -39,10 +38,10 @@ openssh-client
openssh-server
pciutils
physlock
resolvconf
rsync
strace
sudo
systemd-resolved
udev
usbutils
uuid-runtime
Expand Down
1 change: 0 additions & 1 deletion config/package_config/GRML_FULL
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ hostapd
hping3
ifenslave
iftop
ifupdown
ipcalc
iperf
iperf3
Expand Down
1 change: 1 addition & 0 deletions config/package_config/GRML_GHACI
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# we do not want to test *Debian*.

PACKAGES install
cloud-init
locales
vim-tiny

Expand Down
2 changes: 2 additions & 0 deletions config/package_config/GRML_GHACI_CLOUD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ linux-image-amd64
linux-image-arm64

PACKAGES install AMD64
cloud-init
linux-image-cloud-amd64

PACKAGES install ARM64
cloud-init
linux-image-cloud-arm64
1 change: 0 additions & 1 deletion config/package_config/GRML_SMALL
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ atftp
bridge-utils
ethtool
ifenslave
ifupdown
iperf3
iproute2
iptstate
Expand Down
2 changes: 1 addition & 1 deletion config/scripts/GRMLBASE/51-cloud-init
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set -e
# NOTE: this file is relevant only with cloud-init package installed,
# though we install it unconditionally via GRMLBASE class to have it
# available and configured as shipped by Grml ISOs
fcopy -M -v /etc/cloud/cloud.cfg.d/42_grml.cfg
fcopy -M -v /etc/cloud/cloud.cfg

## END OF FILE #################################################################
# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2