|
|
|
@ -24,7 +24,8 @@ j2 distro_family = >{{{{YADM_DISTRO_FAMILY}}}}<
|
|
|
|
|
wrong class 1
|
|
|
|
|
{{%- endif %}}
|
|
|
|
|
{{%- if YADM_CLASS == "{LOCAL_CLASS}" %}}
|
|
|
|
|
Included section for class = {{{{YADM_CLASS}}}} ({{{{YADM_CLASS}}}} repeated)
|
|
|
|
|
Included j2 section for class = \
|
|
|
|
|
{{{{YADM_CLASS}}}} ({{{{YADM_CLASS}}}} repeated)
|
|
|
|
|
{{%- endif %}}
|
|
|
|
|
{{%- if YADM_CLASS == "wrongclass2" %}}
|
|
|
|
|
wrong class 2
|
|
|
|
@ -33,7 +34,7 @@ wrong class 2
|
|
|
|
|
wrong arch 1
|
|
|
|
|
{{%- endif %}}
|
|
|
|
|
{{%- if YADM_ARCH == "{LOCAL_ARCH}" %}}
|
|
|
|
|
Included section for arch = {{{{YADM_ARCH}}}} ({{{{YADM_ARCH}}}} repeated)
|
|
|
|
|
Included j2 section for arch = {{{{YADM_ARCH}}}} ({{{{YADM_ARCH}}}} repeated)
|
|
|
|
|
{{%- endif %}}
|
|
|
|
|
{{%- if YADM_ARCH == "wrongarch2" %}}
|
|
|
|
|
wrong arch 2
|
|
|
|
@ -42,7 +43,7 @@ wrong arch 2
|
|
|
|
|
wrong os 1
|
|
|
|
|
{{%- endif %}}
|
|
|
|
|
{{%- if YADM_OS == "{LOCAL_SYSTEM}" %}}
|
|
|
|
|
Included section for os = {{{{YADM_OS}}}} ({{{{YADM_OS}}}} repeated)
|
|
|
|
|
Included j2 section for os = {{{{YADM_OS}}}} ({{{{YADM_OS}}}} repeated)
|
|
|
|
|
{{%- endif %}}
|
|
|
|
|
{{%- if YADM_OS == "wrongos2" %}}
|
|
|
|
|
wrong os 2
|
|
|
|
@ -51,7 +52,8 @@ wrong os 2
|
|
|
|
|
wrong host 1
|
|
|
|
|
{{%- endif %}}
|
|
|
|
|
{{%- if YADM_HOSTNAME == "{LOCAL_HOST}" %}}
|
|
|
|
|
Included section for host = {{{{YADM_HOSTNAME}}}} ({{{{YADM_HOSTNAME}}}} again)
|
|
|
|
|
Included j2 section for host = \
|
|
|
|
|
{{{{YADM_HOSTNAME}}}} ({{{{YADM_HOSTNAME}}}} again)
|
|
|
|
|
{{%- endif %}}
|
|
|
|
|
{{%- if YADM_HOSTNAME == "wronghost2" %}}
|
|
|
|
|
wrong host 2
|
|
|
|
@ -60,7 +62,7 @@ wrong host 2
|
|
|
|
|
wrong user 1
|
|
|
|
|
{{%- endif %}}
|
|
|
|
|
{{%- if YADM_USER == "{LOCAL_USER}" %}}
|
|
|
|
|
Included section for user = {{{{YADM_USER}}}} ({{{{YADM_USER}}}} repeated)
|
|
|
|
|
Included j2 section for user = {{{{YADM_USER}}}} ({{{{YADM_USER}}}} repeated)
|
|
|
|
|
{{%- endif %}}
|
|
|
|
|
{{%- if YADM_USER == "wronguser2" %}}
|
|
|
|
|
wrong user 2
|
|
|
|
@ -69,7 +71,8 @@ wrong user 2
|
|
|
|
|
wrong distro 1
|
|
|
|
|
{{%- endif %}}
|
|
|
|
|
{{%- if YADM_DISTRO == "{LOCAL_DISTRO}" %}}
|
|
|
|
|
Included section for distro = {{{{YADM_DISTRO}}}} ({{{{YADM_DISTRO}}}} again)
|
|
|
|
|
Included j2 section for distro = \
|
|
|
|
|
{{{{YADM_DISTRO}}}} ({{{{YADM_DISTRO}}}} again)
|
|
|
|
|
{{%- endif %}}
|
|
|
|
|
{{%- if YADM_DISTRO == "wrongdistro2" %}}
|
|
|
|
|
wrong distro 2
|
|
|
|
@ -78,7 +81,7 @@ wrong distro 2
|
|
|
|
|
wrong family 1
|
|
|
|
|
{{%- endif %}}
|
|
|
|
|
{{%- if YADM_DISTRO_FAMILY == "{LOCAL_DISTRO_FAMILY}" %}}
|
|
|
|
|
Included section for distro_family = \
|
|
|
|
|
Included j2 section for distro_family = \
|
|
|
|
|
{{{{YADM_DISTRO_FAMILY}}}} ({{{{YADM_DISTRO_FAMILY}}}} again)
|
|
|
|
|
{{%- endif %}}
|
|
|
|
|
{{%- if YADM_DISTRO_FAMILY == "wrongfamily2" %}}
|
|
|
|
@ -95,13 +98,13 @@ j2 host = >{LOCAL_HOST}<
|
|
|
|
|
j2 user = >{LOCAL_USER}<
|
|
|
|
|
j2 distro = >{LOCAL_DISTRO}<
|
|
|
|
|
j2 distro_family = >{LOCAL_DISTRO_FAMILY}<
|
|
|
|
|
Included section for class = {LOCAL_CLASS} ({LOCAL_CLASS} repeated)
|
|
|
|
|
Included section for arch = {LOCAL_ARCH} ({LOCAL_ARCH} repeated)
|
|
|
|
|
Included section for os = {LOCAL_SYSTEM} ({LOCAL_SYSTEM} repeated)
|
|
|
|
|
Included section for host = {LOCAL_HOST} ({LOCAL_HOST} again)
|
|
|
|
|
Included section for user = {LOCAL_USER} ({LOCAL_USER} repeated)
|
|
|
|
|
Included section for distro = {LOCAL_DISTRO} ({LOCAL_DISTRO} again)
|
|
|
|
|
Included section for distro_family = \
|
|
|
|
|
Included j2 section for class = {LOCAL_CLASS} ({LOCAL_CLASS} repeated)
|
|
|
|
|
Included j2 section for arch = {LOCAL_ARCH} ({LOCAL_ARCH} repeated)
|
|
|
|
|
Included j2 section for os = {LOCAL_SYSTEM} ({LOCAL_SYSTEM} repeated)
|
|
|
|
|
Included j2 section for host = {LOCAL_HOST} ({LOCAL_HOST} again)
|
|
|
|
|
Included j2 section for user = {LOCAL_USER} ({LOCAL_USER} repeated)
|
|
|
|
|
Included j2 section for distro = {LOCAL_DISTRO} ({LOCAL_DISTRO} again)
|
|
|
|
|
Included j2 section for distro_family = \
|
|
|
|
|
{LOCAL_DISTRO_FAMILY} ({LOCAL_DISTRO_FAMILY} again)
|
|
|
|
|
end of template
|
|
|
|
|
'''
|
|
|
|
|