diff --git a/conf/capsule.yaml.template b/conf/capsule.yaml.template index b618bf57ea9..4f50d26bfaf 100644 --- a/conf/capsule.yaml.template +++ b/conf/capsule.yaml.template @@ -17,3 +17,4 @@ CAPSULE: OS: deploy-rhel # workflow to deploy OS that is ready to run the product # Dictionary of arguments which should be passed along to the deploy workflow DEPLOY_ARGUMENTS: + # deploy_network_type: '@jinja {{"ipv6" if this.server.is_ipv6 else "ipv4"}}' diff --git a/conf/server.yaml.template b/conf/server.yaml.template index 788d24dd824..4d905f45e8e 100644 --- a/conf/server.yaml.template +++ b/conf/server.yaml.template @@ -36,6 +36,7 @@ SERVER: OS: deploy-rhel # workflow to deploy OS that is ready to run the product # Dictionary of arguments which should be passed along to the deploy workflow # DEPLOY_ARGUMENTS: + # deploy_network_type: '@jinja {{"ipv6" if this.server.is_ipv6 else "ipv4"}}' # HTTP scheme when building the server URL # Suggested values for "scheme" are "http" and "https". SCHEME: https diff --git a/pytest_fixtures/core/sat_cap_factory.py b/pytest_fixtures/core/sat_cap_factory.py index 9c3ddbe0662..c803da6221a 100644 --- a/pytest_fixtures/core/sat_cap_factory.py +++ b/pytest_fixtures/core/sat_cap_factory.py @@ -307,6 +307,7 @@ def get_deploy_args(request): rhel_version = get_sat_rhel_version() deploy_args = { 'deploy_rhel_version': rhel_version.base_version, + 'deploy_network_type': 'ipv6' if settings.server.is_ipv6 else 'ipv4', 'deploy_flavor': settings.flavors.default, 'promtail_config_template_file': 'config_sat.j2', 'workflow': settings.server.deploy_workflows.os, @@ -338,6 +339,7 @@ def cap_ready_rhel(): rhel_version = Version(settings.capsule.version.rhel_version) deploy_args = { 'deploy_rhel_version': rhel_version.base_version, + 'deploy_network_type': 'ipv6' if settings.server.is_ipv6 else 'ipv4', 'deploy_flavor': settings.flavors.default, 'promtail_config_template_file': 'config_sat.j2', 'workflow': settings.capsule.deploy_workflows.os, diff --git a/robottelo/hosts.py b/robottelo/hosts.py index f150bf522bf..7dc8df5aabf 100644 --- a/robottelo/hosts.py +++ b/robottelo/hosts.py @@ -73,6 +73,7 @@ def lru_sat_ready_rhel(rhel_ver): rhel_version = rhel_ver or settings.server.version.rhel_version deploy_args = { 'deploy_rhel_version': rhel_version, + 'deploy_network_type': 'ipv6' if settings.server.is_ipv6 else 'ipv4', 'deploy_flavor': settings.flavors.default, 'promtail_config_template_file': 'config_sat.j2', 'workflow': settings.server.deploy_workflows.os,