-
Notifications
You must be signed in to change notification settings - Fork 0
/
clear37710template.yaml
55 lines (54 loc) · 1.6 KB
/
clear37710template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
apiVersion: "tinkerbell.org/v1alpha1"
kind: Template
metadata:
name: clear37710
namespace: tink-system
spec:
data: |
version: "0.1"
name: clear37710
global_timeout: 1800
tasks:
- name: "clear37710-installation"
worker: "{{.device_1}}"
volumes:
- /dev:/dev
- /dev/console:/dev/console
- /lib/firmware:/lib/firmware:ro
actions:
- name: "stream-clear-image"
image: quay.io/tinkerbell-actions/image2disk:v1.0.0
timeout: 600
environment:
DEST_DISK: /dev/sda
# Hegel IP
IMG_URL: "http://10.10.152.120:8080/springvalleySysDNet.img.xz"
COMPRESSED: true
- name: "write-networkd-config"
image: quay.io/tinkerbell-actions/writefile:v1.0.0
timeout: 90
environment:
DEST_DISK: {{ index .Hardware.Disks 0 }}2
FS_TYPE: ext4
DEST_PATH: /etc/systemd/network/20-en.network
CONTENTS: |
[Match]
Name=en23*
[Network]
DHCP=yes
UID: 0
GID: 0
MODE: 0644
DIRMODE: 0755
- name: "birth-cert"
image: alpine
timeout: 90
command:
- "sh"
- "-c"
- "mount /dev/sda2 /mnt; date > /mnt/etc/birth_cert"
# - name: "reboot"
# image: public.ecr.aws/l0g8r8j6/tinkerbell/hub/reboot-action:latest
# timeout: 90
# volumes:
# - /worker:/worker