-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Micah Hausler <[email protected]>
- Loading branch information
1 parent
84569f6
commit 418b8b8
Showing
14 changed files
with
336 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
apiVersion: "tinkerbell.org/v1alpha1" | ||
kind: Hardware | ||
metadata: | ||
name: sm01 | ||
namespace: default | ||
spec: | ||
metadata: | ||
facility: | ||
facility_code: onprem | ||
manufacturer: | ||
slug: supermicro | ||
instance: | ||
userdata: "" | ||
hostname: "sm01" | ||
id: "3c:ec:ef:4c:4f:54" | ||
operating_system: | ||
distro: "ubuntu" | ||
os_slug: "ubuntu_20_04" | ||
version: "20.04" | ||
storage: | ||
disks: | ||
- device: /dev/nvme0n1 | ||
partitions: | ||
- label: ROOT | ||
number: 1 | ||
size: 0 | ||
wipe_table: true | ||
interfaces: | ||
- dhcp: | ||
arch: x86_64 | ||
hostname: sm01 | ||
ip: | ||
address: 172.16.10.100 | ||
gateway: 172.16.10.1 | ||
netmask: 255.255.255.0 | ||
lease_time: 86400 | ||
mac: 3c:ec:ef:4c:4f:54 | ||
name_servers: | ||
- 172.16.10.1 | ||
- 10.1.1.11 | ||
uefi: true | ||
netboot: | ||
allowPXE: true | ||
allowWorkflow: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
apiVersion: "tinkerbell.org/v1alpha1" | ||
kind: Template | ||
metadata: | ||
name: debian | ||
namespace: default | ||
spec: | ||
data: | | ||
version: "0.1" | ||
name: debian | ||
global_timeout: 1800 | ||
tasks: | ||
- name: "os-installation" | ||
worker: "{{.device_1}}" | ||
volumes: | ||
- /dev:/dev | ||
- /dev/console:/dev/console | ||
- /lib/firmware:/lib/firmware:ro | ||
actions: | ||
- name: "stream-debian-image" | ||
image: quay.io/tinkerbell-actions/image2disk:v1.0.0 | ||
timeout: 600 | ||
environment: | ||
DEST_DISK: /dev/nvme0n1 | ||
# Hegel IP | ||
IMG_URL: "http://10.1.1.11:8080/debian-10-openstack-amd64.raw.gz" | ||
COMPRESSED: true | ||
- name: "add-tink-cloud-init-config" | ||
image: writefile:v1.0.0 | ||
timeout: 90 | ||
environment: | ||
DEST_DISK: /dev/nvme0n1p1 | ||
FS_TYPE: ext4 | ||
DEST_PATH: /etc/cloud/cloud.cfg.d/10_tinkerbell.cfg | ||
UID: 0 | ||
GID: 0 | ||
MODE: 0600 | ||
DIRMODE: 0700 | ||
CONTENTS: | | ||
datasource: | ||
Ec2: | ||
# Hegel IP | ||
#metadata_urls: ["http://10.1.1.11:50061"] | ||
strict_id: false | ||
system_info: | ||
default_user: | ||
name: tink | ||
groups: [wheel, adm, sudo] | ||
sudo: ["ALL=(ALL) NOPASSWD:ALL"] | ||
shell: /bin/bash | ||
users: | ||
- name: tink | ||
sudo: ["ALL=(ALL) NOPASSWD:ALL"] | ||
warnings: | ||
dsid_missing_source: off | ||
- name: "add-tink-cloud-init-ds-config" | ||
image: writefile:v1.0.0 | ||
timeout: 90 | ||
environment: | ||
DEST_DISK: /dev/nvme0n1p1 | ||
FS_TYPE: ext4 | ||
DEST_PATH: /etc/cloud/ds-identify.cfg | ||
UID: 0 | ||
GID: 0 | ||
MODE: 0600 | ||
DIRMODE: 0700 | ||
CONTENTS: | | ||
datasource: Ec2 | ||
- name: "kexec-debian" | ||
image: quay.io/tinkerbell-actions/kexec:v1.0.1 | ||
timeout: 90 | ||
pid: host | ||
environment: | ||
BLOCK_DEVICE: /dev/nvme0n1p1 | ||
FS_TYPE: ext4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: "tinkerbell.org/v1alpha1" | ||
kind: Workflow | ||
metadata: | ||
name: wf1 | ||
namespace: default | ||
spec: | ||
templateRef: debian | ||
hardwareMap: | ||
device_1: 3c:ec:ef:4c:4f:54 |
Oops, something went wrong.