From 3387f1388de9afae842a45c31c82e62f8d7d6aaa Mon Sep 17 00:00:00 2001 From: jonas Date: Mon, 18 Oct 2021 11:24:21 +0200 Subject: [PATCH] . --- .../pxe/harvester/files/node1.yaml.jinja | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 salt/states/pxe/harvester/files/node1.yaml.jinja diff --git a/salt/states/pxe/harvester/files/node1.yaml.jinja b/salt/states/pxe/harvester/files/node1.yaml.jinja new file mode 100644 index 0000000..868da30 --- /dev/null +++ b/salt/states/pxe/harvester/files/node1.yaml.jinja @@ -0,0 +1,25 @@ +token: {{ pillar['harvester']['token'] }} +os: + ssh_authorized_keys: {{ pillar['harvester']['os']['ssh_authorized_keys'] }} + nostname: node1 + password: {{ pillar['harvester']['os']['password'] }} + dns_nameservers: + - {{ pillar['network']['ip'] }} + password: {{ pillar['harvester']['os']['password'] }} + ntp_servers: + - {{ pillar['network']['ip'] }} +install: + mode: create + networks: + harvester-mgmt: + interfaces: + - name: {{ pillar['harvester']['install']['mgmt-interface'] }} + method: static + ip: {{ pillar['network']['ip'][0:-1] }}{{ pillar['network']['hosts']['node1'] }} + subnet_mask: 255.255.255.0 + gateway: {{ pillar['network']['ip'] }} + default_route: true + device: {{ pillar['harvester']['device'] }} + iso_url: http://{{ pillar['network']['ip'] }}/harvester/harvester-v{{ pillar['harvester']['version'] }}-amd64.iso + vip: {{ pillar['network']['ip'][0:-1] }}{{ pillar['network']['hosts']['harvester'] }} + vip_mode: static