forked from sap-linuxlab/community.sap_install
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.yml
More file actions
52 lines (47 loc) · 2.06 KB
/
Copy pathmain.yml
File metadata and controls
52 lines (47 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# SPDX-License-Identifier: Apache-2.0
---
# defaults file for sap_maintain_etc_hosts
# BEGIN: Default Variables for sap_maintain_etc_hosts
# sap_maintain_etc_hosts_list: (not defined by default)
# List of nodes to be added or removed in /etc/hosts
# Possible options:
# - node_ip:
# IP address of the node.
# It is required for adding a node.
# When deleting a node use only when node_name and node_domain are not defined
# - node_name
# Hostname of the node
# It is required for adding a node.
# When deleting a node use only when node_ip is not defined
# - node_domain
# Domainname of the node
# Defaults to sap_domain, if set, otherwise ansible_facts['domain'] is the default
# When deleting a node use only when node_name is defined
# - aliases
# List of aliases for the node
# Not used when state is absent
# - alias_mode
# `merge` : merges the list of aliases with the exiting aliases of the node. (default)
# `overwrite`: overwrites the aliases of the node.
# Not used when state is absent
# - node_comment
# default: managed by ansible sap_maintain_etc_hosts role`
# String which is appended to line in hosts after comment string
# Not used when state is absent
# - hana_site
# if set (e.g. for configuring cluster) it is appended to the comment
# Not used when state is absent
# - node_role
# Not used. For compatibility reason only.
# - state
# default: present
# Defines, if an entry is added or removed from /etc/hosts
#
# Example: See README.md
# END: Default Variables for sap_maintain_etc_hosts
# Default Value is the definition of the cluster nodes in sap_ha_pacemaker_cluster. If that is not defined
# the role creates a default value from ansible_facts
sap_maintain_etc_hosts_list: "{{ sap_hana_cluster_nodes | default(sap_ha_pacemaker_cluster_cluster_nodes) | default(omit) }}"
# regex patterns for IP address validation:
sap_maintain_etc_hosts_regexp_ipv4: '^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$'
sap_maintain_etc_hosts_regexp_ipv6: '^(?:[a-fA-F0-9]{0,4}:){7}[a-fA-F0-9]{0,4}$'