initial Commit
This commit is contained in:
137
opnsuse-Leap.yaml
Normal file
137
opnsuse-Leap.yaml
Normal file
@@ -0,0 +1,137 @@
|
||||
image:
|
||||
distribution: openSUSE
|
||||
|
||||
source:
|
||||
downloader: opensuse-http
|
||||
url: http://192.168.2.83:8181/OpenSuse/
|
||||
keys:
|
||||
- 0x55A0B34D49501BB7CA474F5AA193FBB572174FC2
|
||||
|
||||
targets:
|
||||
lxc:
|
||||
create-message: |
|
||||
You just created an {{ image.description }} container.
|
||||
config:
|
||||
- type: all
|
||||
before: 5
|
||||
content: |-
|
||||
lxc.include = LXC_TEMPLATE_CONFIG/opensuse.common.conf
|
||||
|
||||
- type: user
|
||||
before: 5
|
||||
content: |-
|
||||
lxc.include = LXC_TEMPLATE_CONFIG/opensuse.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/machine-id
|
||||
generator: dump
|
||||
|
||||
- path: /var/lib/dbus/machine-id
|
||||
generator: remove
|
||||
|
||||
- name: ifcfg-eth0
|
||||
path: /etc/sysconfig/network/ifcfg-eth0
|
||||
generator: dump
|
||||
content: |-
|
||||
STARTMODE='auto'
|
||||
BOOTPROTO='dhcp'
|
||||
types:
|
||||
- container
|
||||
|
||||
- name: ifcfg-eth0
|
||||
path: /etc/sysconfig/network/ifcfg-eth0
|
||||
generator: dump
|
||||
content: |-
|
||||
STARTMODE='auto'
|
||||
BOOTPROTO='dhcp'
|
||||
types:
|
||||
- container
|
||||
|
||||
packages:
|
||||
manager: zypper
|
||||
update: true
|
||||
cleanup: true
|
||||
sets:
|
||||
- packages:
|
||||
- apparmor-abstractions
|
||||
- apparmor-parser
|
||||
- dbus-1
|
||||
- elfutils
|
||||
- file
|
||||
- glib2-tools
|
||||
- gzip
|
||||
- hardlink
|
||||
- hostname
|
||||
- iproute2
|
||||
- iputils
|
||||
- pigz
|
||||
- systemd-sysvinit
|
||||
- tar
|
||||
- which
|
||||
- xz
|
||||
action: install
|
||||
- packages:
|
||||
- nano
|
||||
action: install
|
||||
variants:
|
||||
- default
|
||||
|
||||
repositories:
|
||||
- name: 2.x-repo-oss
|
||||
url: http://192.168.2.83/opensuse/distribution/leap/$releasever/repo/oss/
|
||||
|
||||
- name: 2.x-repo-update
|
||||
url: http://192.168.2.83/opensuse/update/leap/$releasever/oss/
|
||||
|
||||
- name: 2.x-repo-non-oss
|
||||
url: http://192.168.2.83/opensuse/distribution/leap/$releasever/repo/non-oss/
|
||||
|
||||
- name: 2.x-repo-update-non-oss
|
||||
url: http://192.168.2.83/opensuse/update/leap/$releasever/non-oss/
|
||||
|
||||
- name: 200.x-repo-oss
|
||||
url: http://192.168.200.60/opensuse/distribution/leap/$releasever/repo/oss/
|
||||
|
||||
- name: 200.x-repo-update
|
||||
url: http://192.168.2.83/opensuse/update/leap/$releasever/oss/
|
||||
|
||||
- name: 200.x-repo-non-oss
|
||||
url: http://192.168.2.83/opensuse/distribution/leap/$releasever/repo/non-oss/
|
||||
|
||||
- name: 200.x-repo-update-non-oss
|
||||
url: http://192.168.2.83/opensuse/update/leap/$releasever/non-oss/
|
||||
|
||||
|
||||
actions:
|
||||
- trigger: post-unpack
|
||||
action: |-
|
||||
#!/bin/sh
|
||||
zypper modifyrepo -d repo-{oss,non-oss,update,update-non-oss}
|
||||
zypper modifyrepo -d 200.x-repo-{oss,non-oss,update,update-non-oss}
|
||||
|
||||
- trigger: post-packages
|
||||
action: |-
|
||||
#!/bin/sh
|
||||
umount -l /etc/resolv.conf || true
|
||||
rm /etc/resolv.conf
|
||||
ln -sf /var/run/netconfig/resolv.conf /etc/resolv.conf
|
||||
Reference in New Issue
Block a user