Custom disk for hardware servers

This commit is contained in:
Jeroen Vermeulen 2023-09-18 09:58:34 +02:00
parent d19eb2678c
commit dd0cb886e1
No known key found for this signature in database
3 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@ talos_cluster_config_dir: "{{ ansible_root_dir }}/configs/{{ cluster_name }}"
talos_cluster_secrets_file: "{{ talos_cluster_config_dir }}/talos-secrets.yaml"
talos_control_lb_hostname: "control.{{ cluster_name }}"
talos_node_config_file: "{{ talos_cluster_config_dir }}/talos-{{ inventory_hostname }}.yaml"
talos_disk: /dev/sda
talosconfig: "{{ talos_cluster_config_dir }}/talosconfig.yaml"
kubeconfig: "{{ talos_cluster_config_dir }}/kubeconfig.yaml"
talos_image_version: v1.4.7

View File

@ -12,6 +12,7 @@
--config-patch @'{{ talos_generic_config_dir }}/talos-patch.yaml'
--config-patch-control-plane @'{{ talos_generic_config_dir }}/talos-patch-control.yaml'
--config-patch='[{"op": "replace", "path": "/machine/network/hostname", "value": "{{ inventory_hostname }}"}]'
--config-patch='[{"op": "replace", "path": "/machine/install/disk", "value": "{{ talos_disk }}"}]'
--talos-version '{{ talos_image_version }}'
--kubernetes-version '{{ kubernetes_version }}'
--additional-sans '{{ talos_control_lb_hostname }}'

View File

@ -12,6 +12,7 @@
--config-patch @'{{ talos_generic_config_dir }}/talos-patch.yaml'
--config-patch-worker @'{{ talos_generic_config_dir }}/talos-patch-worker.yaml'
--config-patch='[{"op": "replace", "path": "/machine/network/hostname", "value": "{{ inventory_hostname }}"}]'
--config-patch='[{"op": "replace", "path": "/machine/install/disk", "value": "{{ talos_disk }}"}]'
--talos-version '{{ talos_image_version }}'
--kubernetes-version '{{ kubernetes_version }}'
--additional-sans '{{ talos_control_lb_hostname }}'