Skip to content
Snippets Groups Projects
Commit a897ea51 authored by reminec's avatar reminec
Browse files

move group_vars into defaults vars role

parent f913affc
No related branches found
No related tags found
1 merge request!4Contribute "Availability to install as ansible collection"
# General config
bin_dir: /usr/local/bin
systemd_dir: /etc/systemd/system
storage_dir: /var/lib
# Hepto deployment
hepto_version: 79361
hepto_url: "https://forge.tedomum.net/acides/hepto/-/jobs/{{ hepto_version }}/artifacts/raw/hepto"
# Cluster and node settings
cluster_name: hepto
node_name: "{{ inventory_hostname }}"
node_iface: eth0
kubeconfig: "{{ storage_dir }}/{{ cluster_name }}/{{ node_name }}/kubeconfig"
# Dynamic variables based on groups
node_role: "{{ 'master' if 'master' in group_names else 'node' }}"
cluster_anchor: "{{ groups['anchor'] | map('extract', hostvars, 'node_ip') | list | ansible.utils.ipaddr('address') | first }}"
external_ips: "{{ groups['public'] | map('extract', hostvars, 'node_ip') | list | ansible.utils.ipaddr('address') }}"
# General config
bin_dir: /usr/local/bin
systemd_dir: /etc/systemd/system
storage_dir: /var/lib
hepto_bin: "{{ bin_dir }}/hepto.{{ hepto_version }}"
config_file: "/etc/{{ cluster_name }}/{{ node_name }}"
# Hepto deployment
hepto_version: 79361
hepto_url: "https://forge.tedomum.net/acides/hepto/-/jobs/{{ hepto_version }}/artifacts/raw/hepto"
# Cluster and node settings
cluster_name: hepto
node_name: "{{ inventory_hostname }}"
node_iface: eth0
kubeconfig: "{{ storage_dir }}/{{ cluster_name }}/{{ node_name }}/kubeconfig"
# Dynamic variables based on groups
node_role: "{{ 'master' if 'master' in group_names else 'node' }}"
cluster_anchor: "{{ groups['anchor'] | map('extract', hostvars, 'node_ip') | list | ansible.utils.ipaddr('address') | first }}"
external_ips: "{{ groups['public'] | map('extract', hostvars, 'node_ip') | list | ansible.utils.ipaddr('address') }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment