Add support for arbitrary /etc/hosts entries
This commit is contained in:
parent
b75e84a124
commit
9b2e12e69b
|
@ -19,6 +19,11 @@ logrotate_interval: daily
|
||||||
# Root email name (usually "root")
|
# Root email name (usually "root")
|
||||||
username_email_root: root
|
username_email_root: root
|
||||||
|
|
||||||
|
# Hosts entries
|
||||||
|
hosts:
|
||||||
|
- name: test
|
||||||
|
ip: 127.0.0.1
|
||||||
|
|
||||||
# Administrative shell users for the cluster
|
# Administrative shell users for the cluster
|
||||||
admin_users:
|
admin_users:
|
||||||
- name: "myuser"
|
- name: "myuser"
|
||||||
|
|
|
@ -10,3 +10,9 @@ ff02::2 ip6-allrouters
|
||||||
{{ node.cluster_ip }} {{ node.hostname }}.{{ pvc_cluster_domain }} {{ node.hostname }}
|
{{ node.cluster_ip }} {{ node.hostname }}.{{ pvc_cluster_domain }} {{ node.hostname }}
|
||||||
{{ node.storage_ip }} {{ node.hostname }}.{{ pvc_storage_domain }}
|
{{ node.storage_ip }} {{ node.hostname }}.{{ pvc_storage_domain }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
{% if hosts is defined %}
|
||||||
|
{% for host in hosts %}
|
||||||
|
{{ host.ip }} {{ host.name }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue