agent-config-template.yaml.j2 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. apiVersion: v1alpha1
  2. kind: AgentConfig
  3. metadata:
  4. name: agent-cluster
  5. rendezvousIP: {{ hostvars[install_host]['ansible_facts']['default_ipv4']['address'] }}
  6. additionalNTPSources:
  7. - utility.lab.example.com
  8. hosts:
  9. - hostname: {{ hostvars[install_host]['inventory_hostname_short'] }}
  10. rootDeviceHints:
  11. deviceName: /dev/vda
  12. interfaces:
  13. - name: {{ hostvars[install_host]['ansible_facts']['default_ipv4']['interface'] }}
  14. macAddress: {{ hostvars[install_host]['ansible_facts']['default_ipv4']['macaddress'] }}
  15. networkConfig:
  16. interfaces:
  17. - name: {{ hostvars[install_host]['ansible_facts']['default_ipv4']['interface'] }}
  18. type: ethernet
  19. state: up
  20. mac-address: {{ hostvars[install_host]['ansible_facts']['default_ipv4']['macaddress'] }}
  21. ipv4:
  22. enabled: true
  23. address:
  24. - ip: {{ hostvars[install_host]['ansible_facts']['default_ipv4']['address'] }}
  25. prefix-length: 24
  26. dhcp: false
  27. dns-resolver:
  28. config:
  29. server:
  30. - 192.168.50.254
  31. routes:
  32. config:
  33. - destination: 0.0.0.0/0
  34. next-hop-address: 127.0.0.1
  35. next-hop-interface: {{ hostvars[install_host]['ansible_facts']['default_ipv4']['interface'] }}
  36. table-id: 254