profiles to correctly formatted yml
Signed-off-by: graysky <graysky@archlinux.us>
This commit is contained in:
parent
5c6ad3046a
commit
5d6bfd4c17
@ -1,6 +1,3 @@
|
||||
# Alpine Linux
|
||||
|
||||
```yaml
|
||||
image:
|
||||
distribution: alpinelinux
|
||||
release: 3.7.0
|
||||
@ -57,4 +54,3 @@ packages:
|
||||
update: true
|
||||
install:
|
||||
- neovim
|
||||
```
|
@ -1,6 +1,3 @@
|
||||
# Arch Linux
|
||||
|
||||
```yaml
|
||||
image:
|
||||
distribution: archlinux
|
||||
release: 2018.03.01
|
||||
@ -59,4 +56,3 @@ packages:
|
||||
update: true
|
||||
install:
|
||||
- neovim
|
||||
```
|
@ -1,6 +1,3 @@
|
||||
# CentOS
|
||||
|
||||
```yaml
|
||||
image:
|
||||
distribution: centos
|
||||
release: 7
|
||||
@ -92,4 +89,3 @@ actions:
|
||||
action: |-
|
||||
#!/bin/sh
|
||||
rm -rf /var/cache/yum
|
||||
```
|
@ -1,6 +1,3 @@
|
||||
# Debian
|
||||
|
||||
```yaml
|
||||
image:
|
||||
distribution: debian
|
||||
release: testing
|
||||
@ -59,4 +56,3 @@ packages:
|
||||
|
||||
mappings:
|
||||
architecture_map: debian
|
||||
```
|
@ -1,6 +1,3 @@
|
||||
# Fedora
|
||||
|
||||
```yaml
|
||||
image:
|
||||
distribution: fedora
|
||||
release: 28
|
||||
@ -56,4 +53,3 @@ packages:
|
||||
install:
|
||||
- systemd
|
||||
- neovim
|
||||
```
|
@ -1,7 +1,3 @@
|
||||
# Ubuntu
|
||||
## With debootstrap
|
||||
|
||||
```yaml
|
||||
image:
|
||||
distribution: ubuntu
|
||||
release: artful
|
||||
@ -154,77 +150,3 @@ actions:
|
||||
|
||||
mappings:
|
||||
architecture_map: debian
|
||||
```
|
||||
|
||||
## With Ubuntu base image
|
||||
|
||||
```yaml
|
||||
image:
|
||||
distribution: ubuntu
|
||||
release: artful
|
||||
variant: default
|
||||
description: Ubuntu {{ image.release }}
|
||||
expiry: 30d
|
||||
arch: amd64
|
||||
|
||||
source:
|
||||
downloader: ubuntu-http
|
||||
url: http://cdimage.ubuntu.com/ubuntu-base
|
||||
keys:
|
||||
- 0x46181433FBB75451
|
||||
- 0xD94AA3F0EFE21092
|
||||
|
||||
targets:
|
||||
lxc:
|
||||
create-message: |
|
||||
You just created an Ubuntu container (release={{ image.release }}, arch={{ image.architecture }}, variant={{ image.variant }})
|
||||
|
||||
config:
|
||||
- type: all
|
||||
before: 5
|
||||
content: |-
|
||||
lxc.include = LXC_TEMPLATE_CONFIG/ubuntu.common.conf
|
||||
|
||||
- type: user
|
||||
before: 5
|
||||
content: |-
|
||||
lxc.include = LXC_TEMPLATE_CONFIG/ubuntu.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/init/lxc-tty.conf
|
||||
generator: upstart-tty
|
||||
releases:
|
||||
- precise
|
||||
- trusty
|
||||
|
||||
packages:
|
||||
manager: apt
|
||||
|
||||
update: true
|
||||
install:
|
||||
- systemd
|
||||
- neovim
|
||||
|
||||
mappings:
|
||||
architecture_map: debian
|
||||
```
|
68
doc/examples/ubuntu-with-base-image
Normal file
68
doc/examples/ubuntu-with-base-image
Normal file
@ -0,0 +1,68 @@
|
||||
image:
|
||||
distribution: ubuntu
|
||||
release: artful
|
||||
variant: default
|
||||
description: Ubuntu {{ image.release }}
|
||||
expiry: 30d
|
||||
arch: amd64
|
||||
|
||||
source:
|
||||
downloader: ubuntu-http
|
||||
url: http://cdimage.ubuntu.com/ubuntu-base
|
||||
keys:
|
||||
- 0x46181433FBB75451
|
||||
- 0xD94AA3F0EFE21092
|
||||
|
||||
targets:
|
||||
lxc:
|
||||
create-message: |
|
||||
You just created an Ubuntu container (release={{ image.release }}, arch={{ image.architecture }}, variant={{ image.variant }})
|
||||
|
||||
config:
|
||||
- type: all
|
||||
before: 5
|
||||
content: |-
|
||||
lxc.include = LXC_TEMPLATE_CONFIG/ubuntu.common.conf
|
||||
|
||||
- type: user
|
||||
before: 5
|
||||
content: |-
|
||||
lxc.include = LXC_TEMPLATE_CONFIG/ubuntu.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/init/lxc-tty.conf
|
||||
generator: upstart-tty
|
||||
releases:
|
||||
- precise
|
||||
- trusty
|
||||
|
||||
packages:
|
||||
manager: apt
|
||||
|
||||
update: true
|
||||
install:
|
||||
- systemd
|
||||
- neovim
|
||||
|
||||
mappings:
|
||||
architecture_map: debian
|
Loading…
Reference in New Issue
Block a user