From: Michael Prokop Date: Fri, 3 Apr 2020 14:06:40 +0000 (+0200) Subject: Initial cloud-init support X-Git-Tag: v0.35.0~4 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=3fc930d85d8b476c28524d9d6482e19c1eccf5ee;hp=c557940f98cb23335d5f3cc16492eed60936dc32 Initial cloud-init support --- diff --git a/etc/grml/fai/config/files/etc/cloud/cloud.cfg.d/42_grml.cfg/GRMLBASE b/etc/grml/fai/config/files/etc/cloud/cloud.cfg.d/42_grml.cfg/GRMLBASE new file mode 100644 index 0000000..646e4e2 --- /dev/null +++ b/etc/grml/fai/config/files/etc/cloud/cloud.cfg.d/42_grml.cfg/GRMLBASE @@ -0,0 +1,28 @@ +# cloud-init configuration for Grml live system. +# +# This file was deployed via grml-live's +# ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/51-cloud-init script, using +# ${GRML_FAI_CONFIG}/config/files/etc/cloud/cloud.cfg.d/42_grml.cfg/GRMLBASE + +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/ + upstart_dir: /etc/init/ + package_mirrors: + - arches: [default] + failsafe: + primary: http://deb.debian.org/debian + security: http://security.debian.org/ + ssh_svcname: ssh diff --git a/etc/grml/fai/config/scripts/GRMLBASE/51-cloud-init b/etc/grml/fai/config/scripts/GRMLBASE/51-cloud-init new file mode 100755 index 0000000..017408d --- /dev/null +++ b/etc/grml/fai/config/scripts/GRMLBASE/51-cloud-init @@ -0,0 +1,18 @@ +#!/bin/bash +# Filename: ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/51-cloud-init +# Purpose: configure cloud-init package +# Authors: grml-team (grml.org), (c) Michael Prokop +# Bug-Reports: see http://grml.org/bugs/ +# License: This file is licensed under the GPL v2 or any later version. +################################################################################ + +set -u +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 -v /etc/cloud/cloud.cfg.d/42_grml.cfg + +## END OF FILE ################################################################# +# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2