From 8b4dc01d8bfa9a86f29a84283cb1c4eb3cf9c8d7 Mon Sep 17 00:00:00 2001 From: Mikhail Gordeev Date: Fri, 22 Mar 2019 20:25:33 +0300 Subject: [PATCH] Add ALT Linux example Signed-off-by: Mikhail Gordeev --- doc/examples/alt | 75 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 doc/examples/alt diff --git a/doc/examples/alt b/doc/examples/alt new file mode 100644 index 0000000..c195dd0 --- /dev/null +++ b/doc/examples/alt @@ -0,0 +1,75 @@ +image: + distribution: ALT Linux + release: Sisyphus + description: ALT Linux {{ image.release }} + expiry: 30d + architecture: x86_64 + +source: + downloader: alt-http + url: http://ftp.altlinux.org + keyserver: keyserver.ubuntu.com + keys: + - 0x17F112840DE94827C9C109FD3E2B30EA57EF33CE + +targets: + lxc: + create-message: | + You just created an {{ image.distribution }} container (release={{ image.release }}, arch={{ image.architecture }}) + + config: + - type: all + before: 5 + content: |- + lxc.include = LXC_TEMPLATE_CONFIG/alt.common.conf + + - type: user + before: 5 + content: |- + lxc.include = LXC_TEMPLATE_CONFIG/alt.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_kernel }} + +files: + - path: /etc/hostname + generator: hostname + + - path: /etc/hosts + generator: hosts + + - path: /etc/systemd/network/eth0.network + generator: dump + content: |- + [Match] + Name=eth0 + + [Network] + DHCP=ipv4 + +packages: + manager: apt_rpm + + update: true + cleanup: true + + sets: + - packages: + - vim-console + action: install + +environment: + variables: + - key: HOME + value: /root