.
This commit is contained in:
parent
7019e46395
commit
d962e7bc74
9
salt/pillars/harvester_cluster.sls
Normal file
9
salt/pillars/harvester_cluster.sls
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
harvester:
|
||||||
|
dns_host: harvester
|
||||||
|
token: ThisShouldBeConfiguredInYourlocal.sls
|
||||||
|
os:
|
||||||
|
ssh_authorized_keys: []
|
||||||
|
password: rancher
|
||||||
|
install:
|
||||||
|
mgmt-interface: ensp2s0f0
|
||||||
|
|
@ -10,6 +10,7 @@ base:
|
|||||||
- wireguard
|
- wireguard
|
||||||
- hostapd
|
- hostapd
|
||||||
- pxe
|
- pxe
|
||||||
|
- harvester_cluster
|
||||||
{% if salt['pillar.file_exists']('local.sls') %}
|
{% if salt['pillar.file_exists']('local.sls') %}
|
||||||
- local
|
- local
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -29,6 +29,7 @@ Configure firewalld for internal network:
|
|||||||
- {{ pillar['network']['interface']['internal'] }}
|
- {{ pillar['network']['interface']['internal'] }}
|
||||||
- {{ pillar['wireguard']['iface'] }}
|
- {{ pillar['wireguard']['iface'] }}
|
||||||
- {{ pillar['network']['interface']['wireless'] }}
|
- {{ pillar['network']['interface']['wireless'] }}
|
||||||
|
- {{ pillar['network']['interface']['bridge'] }}
|
||||||
- sources:
|
- sources:
|
||||||
- {{ pillar['network']['netaddress'] }}/{{ pillar['network']['netmask'] }}
|
- {{ pillar['network']['netaddress'] }}/{{ pillar['network']['netmask'] }}
|
||||||
- services:
|
- services:
|
||||||
|
@ -27,3 +27,4 @@ ff02::3 ipv6-allhosts
|
|||||||
{% for svc in ['rmt', 'www'] -%}
|
{% for svc in ['rmt', 'www'] -%}
|
||||||
{{ ip }} {{ svc }}.{{ domain }} {{ svc }}
|
{{ ip }} {{ svc }}.{{ domain }} {{ svc }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{{ pillar['network']['ip'][0:-1] }}20 harvester.{{ domain }} harvester
|
||||||
|
@ -1,7 +1,15 @@
|
|||||||
|
{% 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 {
|
||||||
|
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
|
||||||
|
initrd harvester-v{{ cluster_version }}-initrd-amd64
|
||||||
|
boot
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
{% for item in pillar['pxe']['harvester'] -%}
|
{% for item in pillar['pxe']['harvester'] -%}
|
||||||
menuentry 'Harvester {{ item['version'] }}' --class os {
|
menuentry 'Harvester {{ item['version'] }}' --class os {
|
||||||
linux harvester-v{{ item['version'] }}-vmlinuz-amd64 nomodeset initrd=harvester-v{{ item['version'] }}-initrd-amd64 ip=dhcp net.ifnames=1 rd.cos.disable rd.noverifyssl console=tty1 root=live:http://{{ pillar['network']['ip'] }}/harvester/harvester-v{{ item['version'] }}-rootfs-amd64.squashfs iso_url=http://{{ pillar['network']['ip'] }}/harvester/harvester-v{{ item['version'] }}-amd64.iso
|
linux harvester-v{{ item['version'] }}-vmlinuz-amd64 nomodeset initrd=harvester-v{{ item['version'] }}-initrd-amd64 ip=dhcp net.ifnames=1 rd.cos.disable rd.noverifyssl console=tty1 root=live:http://{{ pillar['network']['ip'] }}/harvester/harvester-v{{ item['version'] }}-rootfs-amd64.squashfs iso_url=http://{{ pillar['network']['ip'] }}/harvester/harvester-v{{ item['version'] }}-amd64.iso
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
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
|
Loading…
Reference in New Issue
Block a user