This commit is contained in:
jonas 2021-10-18 11:24:06 +02:00
parent dea2928d3a
commit b85fd8ebef
4 changed files with 17 additions and 27 deletions

View File

@ -1,9 +1,12 @@
harvester: harvester:
version: 0.3.0
dns_host: harvester dns_host: harvester
token: ThisShouldBeConfiguredInYourlocal.sls password: rancher
token: ThisShouldBeConfiguredInYour_local.sls
os: os:
ssh_authorized_keys: [] ssh_authorized_keys: []
password: rancher password: rancher
install: install:
mgmt-interface: ensp2s0f0 mgmt-interface: enp2s0f0
device: /dev/nvme0n1

View File

@ -1,11 +1,10 @@
{% set cluster_version = 0.3.0 -%}
## Menu Colours ## Menu Colours
set menu_color_normal=white/black set menu_color_normal=white/black
set menu_color_highlight=white/green set menu_color_highlight=white/green
menuentry 'TLU Harvester {{ cluster_version }} Server-1 --class os { menuentry 'TLU Harvester {{ pillar['harvester']['version'] }} node1' --class os {
linux harvester-v{{ cluster_version }}-vmlinuz-amd64 nomodeset initrd=harvester-v{{ cluster_version }}-initrd-amd64 ip=dhcp net.ifnames=1 rd.cos.disable rd.noverifyssl console=tty1 root=live:http://{{ pillar['network']['ip'] }}/harvester/harvester-v{{ cluster_version }}-rootfs-amd64.squashfs iso_url=http://{{ pillar['network']['ip'] }}/harvester/harvester-v{{ cluster_version }}-amd64.iso harvester.install.automatic=true harvester.install.config_url=http://{{ pillar['network']['ip'] }}/harvester/tlu-cluster-create.yaml linux harvester-v{{ pillar['harvester']['version'] }}-vmlinuz-amd64 nomodeset initrd=harvester-v{{ pillar['harvester']['version'] }}-initrd-amd64 ip=dhcp net.ifnames=1 rd.cos.disable rd.noverifyssl console=tty1 root=live:http://{{ pillar['network']['ip'] }}/harvester/harvester-v{{ pillar['harvester']['version'] }}-rootfs-amd64.squashfs harvester.install.automatic=true harvester.install.config_url=http://{{ pillar['network']['ip'] }}/harvester/node1.yaml
initrd harvester-v{{ cluster_version }}-initrd-amd64 initrd harvester-v{{ pillar['harvester']['version'] }}-initrd-amd64
boot boot
} }

View File

@ -1,21 +0,0 @@
server_url: https://{{pillar['harvester']['dns_host'] }}.{{ pillar['network']['domain']}}:8443
token: {{ pillar['harvester']['token'] }}
os:
ssh_authorized_keys: {{ pillar['harvester']['os']['ssh_authorized_keys'] }}
nostname: node1
dns_nameservers:
- {{ pillar['network']['ip'] }}
password: {{ pillar['harvester']['os']['password'] }}
intall:
mode: create
networks:
harvester-mgmt:
interfaces:
- name: ensp2s0f0
default_route: true
method: static
ip: {{ pillar['network']['ip][0:-1] }}21
subnet_mask: 255.255.255.0
gateway: {{ pillar['network']['ip'] }}
device: /dev/nvme0n1

View File

@ -45,3 +45,12 @@ Update harvester grub file:
- user: root - user: root
- group: root - group: root
- mode: "0644" - mode: "0644"
Create tlu harvester cluster yaml for node1:
file.managed:
- name: /srv/www/htdocs/harvester/node1.yaml
- source: salt://pxe/harvester/files/node1.yaml.jinja
- template: jinja
- user: root
- group: root
- mode: "0644"