misc_lxc-template-generator/configs/base_trainee.yaml
Brendan Golden c4de9f43aa moved teh configs into their own folder
Signed-off-by: Brendan Golden <git_laptop@brendan.ie>
2024-01-24 21:08:03 +00:00

72 lines
1.4 KiB
YAML

image:
name: debian-disco-x86_64
distribution: debian
release: bookworm
description: |-
Debian {{ image.release }}
architecture: amd64
source:
downloader: rootfs-http
url: file://SKYNET_ROOT_DIR/images/base/rootfs.tar.xz
targets:
lxc:
create_message: |-
You just created an {{ image.description }} container.
To enable SSH, run: apt install openssh-server
No default root or user password are set by LXC.
config:
- type: all
before: 5
content: |-
lxc.include = LXC_TEMPLATE_CONFIG/debian.common.conf
- type: user
before: 5
content: |-
lxc.include = LXC_TEMPLATE_CONFIG/debian.userns.conf
- type: all
after: 4
content: |-
lxc.include = LXC_TEMPLATE_CONFIG/common.conf
- type: user
after: 4
content: |-
lxc.include = LXC_TEMPLATE_CONFIG/userns.conf
- type: all
content: |-
lxc.arch = {{ image.architecture_personality }}
files:
- path: /skynet/sssd.conf
generator: copy
source: ./files/sssd.conf_trainee
- path: /skynet/sudoers
generator: copy
source: ./files/sudoers_trainee
packages:
manager: apt
update: true
cleanup: true
sets:
actions:
- trigger: post-files
action: |-
#!/bin/sh
set -eux
cp /skynet/sssd.conf /etc/sssd/sssd.conf
chmod 600 /etc/sssd/sssd.conf
cp /skynet/sudoers /etc/sudoers
chmod 440 /etc/sudoers