tlu/salt/states/tlu-harvester/files/node2.yaml.jinja

35 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-10-18 13:00:39 +00:00
server_url: https://harvester.{{ pillar['network']['domain'] }}:8443
2021-10-19 09:54:30 +00:00
token: {{ pillar['tlu-harvester']['token'] }}
2021-10-18 13:00:39 +00:00
os:
2021-10-19 09:54:30 +00:00
ssh_authorized_keys: {{ pillar['tlu-harvester']['os']['ssh_authorized_keys'] }}
2021-10-18 13:00:39 +00:00
hostname: node2
2021-10-19 09:54:30 +00:00
password: {{ pillar['tlu-harvester']['os']['password'] }}
2021-10-18 13:00:39 +00:00
dns_nameservers:
- {{ pillar['network']['ip'] }}
2021-10-19 09:54:30 +00:00
password: {{ pillar['tlu-harvester']['os']['password'] }}
2021-10-18 13:00:39 +00:00
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:
2021-10-19 09:54:30 +00:00
- name: {{ pillar['tlu-harvester']['install']['mgmt-interface'] }}
2021-10-18 13:00:39 +00:00
method: static
ip: {{ pillar['network']['ip'][0:-1] }}{{ pillar['network']['hosts']['node2'] }}
subnet_mask: 255.255.255.0
gateway: {{ pillar['network']['ip'] }}
default_route: true
2021-10-19 09:54:30 +00:00
device: {{ pillar['tlu-harvester']['device'] }}
iso_url: http://{{ pillar['network']['ip'] }}/harvester/harvester-v{{ pillar['tlu-harvester']['version'] }}-amd64.iso