-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpillar.example
118 lines (116 loc) · 4.87 KB
/
pillar.example
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#!yamlex
ipxe: !aggregate
lookup: !aggregate
boot_url: http://192.168.33.102
scripts: !aggregate
debian:
title: Debian Preseed Installers
hidden: False
files:
initrd.gz:
source: http://ftp.debian.org/debian/dists/stable/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
source_hash: sha256=8c29f48b0bed49477775a1640be6f9f0271ad10678115e3a1076192fc715a967
linux:
source: http://ftp.debian.org/debian/dists/stable/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux
source_hash: sha256=951cea84dd488e3d4bfd7b3c55373fc48f4f21c5404a9204a72993ac3aa169d4
auto_exit_section: True
auto_failed_section: Failed
sections:
- start:
menu:
name: 'select'
items:
- label: Available Installers - All Destructive
gap: True
- name: debian_install_cloud
label: 1-Debian Base for Cloud Node
key: 1
- name: debian_install_ask
label: 2-Debian Base - Prompted for D-I Class
key: 2
- gap: True
- name: exit
label: x - Exit and return to main menu
key: x
default: True
selected: True
choose:
timeout: 60000
default: x
- debian_install_cloud:
commands:
- "set classes cloudnode"
- "set hostname cloudnode"
- "set domain local"
- "echo -n Hostname (no domain) for install: && read hostname"
- "goto install"
- debian_install_ask:
commands:
- "set hostname cloudnode"
- "set domain local"
- "echo -n Classes for Preseed: && read classes"
- "echo -n Hostname (no domain) for install: && read hostname"
- "goto install"
- install:
commands:
- "set base-url /boot/debian"
- "echo Starting network boot for preseed of ${hostname}.${domain} with classes ${classes}"
- "kernel ${base-url}/linux"
- "initrd ${base-url}/initrd.gz"
- "imgargs linux vga=788 interface=auto hostname=${hostname} domain=${domain} netcfg/dhcp_timeout=60 priority=high auto=true url=${boot-url} classes=cloudnode"
- "boot || goto failed"
- "goto start"
ubuntu:
title: Ubuntu Preseed Installers
hidden: False
files:
initrd.gz:
source: http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz
source_hash: sha256=d5b9d85215e1918e4702363a95001693a78dfd88408bfa17bdc2ba29749fd15d
linux:
source: http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/linux
source_hash: sha256=67e4232524bc917c1f774297793bf35f68153069a685fa622c0dc08d60737c9e
auto_exit_section: True
auto_failed_section: Failed
sections:
- start:
menu:
name: 'select'
items:
- label: Available Installers - All Destructive
gap: True
- name: ubuntu_install_cloud
label: 1-Ubuntu Base for Cloud Node
key: 1
- name: ubuntu_install_ask
label: 2-Ubuntu Base - Prompted for D-I Class
key: 2
- gap: True
- name: exit
label: Exit and return to main menu
choose:
timeout: 60000
default: x
- ubuntu_install_cloud:
commands:
- "set classes cloudnode"
- "set hostname cloudnode"
- "set domain local"
- "echo -n Hostname (no domain) for install: && read hostname"
- "goto install"
- ubuntu_install_ask:
commands:
- "echo Starting Ubuntu Stable network boot"
- "set hostname cloudnode"
- "set domain local"
- "echo -n Hostname (no domain) for install: && read hostname"
- "goto install"
- install:
commands:
- "set base-url /boot/ubuntu"
- "echo Starting network boot for preseed of ${hostname}.${domain} with classes ${classes}"
- "kernel ${base-url}/linux"
- "initrd ${base-url}/initrd.gz"
- "imgargs linux vga=788 interface=auto hostname=${hostname} domain=${domain} netcfg/dhcp_timeout=60 priority=high auto=true url=${boot-url} classes=cloudnode"
- "boot || goto failed"
- "goto start"