tlu/salt/states/tlu-harvester/files/node3.yaml.jinja
2021-10-19 11:54:30 +02:00

35 lines
1.2 KiB
Django/Jinja

server_url: https://harvester.{{ pillar['network']['domain'] }}:8443
token: {{ pillar['tlu-harvester']['token'] }}
os:
ssh_authorized_keys: {{ pillar['tlu-harvester']['os']['ssh_authorized_keys'] }}
hostname: node3
password: {{ pillar['tlu-harvester']['os']['password'] }}
dns_nameservers:
- {{ pillar['network']['ip'] }}
password: {{ pillar['tlu-harvester']['os']['password'] }}
ntp_servers:
- {{ pillar['network']['ip'] }}
write_files:
- path: /etc/rancher/rke2/registries.yaml
- owner: 'root:root'
- permissions: '0600'
- content: |
mirrors:
docker.io:
endpoint:
- "http://{{ pillar['network']['ip'] }}:5000"
install:
mode: join
networks:
harvester-mgmt:
interfaces:
- name: {{ pillar['tlu-harvester']['install']['mgmt-interface'] }}
method: static
ip: {{ pillar['network']['ip'][0:-1] }}{{ pillar['network']['hosts']['node3'] }}
subnet_mask: 255.255.255.0
gateway: {{ pillar['network']['ip'] }}
default_route: true
device: {{ pillar['tlu-harvester']['device'] }}
iso_url: http://{{ pillar['network']['ip'] }}/harvester/harvester-v{{ pillar['tlu-harvester']['version'] }}-amd64.iso