Skip to content

Commit

Permalink
Initial cloud-init support
Browse files Browse the repository at this point in the history
  • Loading branch information
mika committed May 12, 2020
1 parent c557940 commit 3fc930d
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
@@ -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
18 changes: 18 additions & 0 deletions 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 <mika@grml.org>
# 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

0 comments on commit 3fc930d

Please sign in to comment.