From b77fdc9637c93d7edae56a4e82f37291331fe020 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sun, 15 May 2022 13:14:03 -0700 Subject: [PATCH] inventory / staging: switch staging default to mtu of 9000 Signed-off-by: Kevin Fenzi --- inventory/group_vars/staging | 1 + scripts/ansible-vars | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/inventory/group_vars/staging b/inventory/group_vars/staging index 8d0cbe9037..d08d48c170 100644 --- a/inventory/group_vars/staging +++ b/inventory/group_vars/staging @@ -39,6 +39,7 @@ network_connections: mac: "{{ ansible_default_ipv4.macaddress }}" name: eth0 type: ethernet + mtu: 9000 ocp_wildcard_cert_file: wildcard-2022.apps.ocp.stg.fedoraproject.org.cert # This is the openshift wildcard cert for ocp stg ocp_wildcard_cert_name: wildcard-2022.apps.ocp.stg.fedoraproject.org diff --git a/scripts/ansible-vars b/scripts/ansible-vars index 617121f227..bea362ebfc 100755 --- a/scripts/ansible-vars +++ b/scripts/ansible-vars @@ -120,12 +120,12 @@ class Cli(object): hosts = I.list_hosts(pattern) groups = I.get_groups() if len(hosts) == 0: - print >>sys.stderr, "No hosts matched" + print("No hosts matched", file=sys.stderr) sys.exit(1) if options.listhosts: for host in hosts: - print '%s' % host + print('%s' % host) sys.exit(0) if options.listgroups: @@ -135,8 +135,8 @@ class Cli(object): group_subset = list(set(flatten(group_subset))) for group in group_subset: parents = group.get_ancestors() - print '%s (depth %s): parents: %s' % (group.name, group.depth, - [ '%s (depth %s)' % (x.name, x.depth) for x in parents ]) + print('%s (depth %s): parents: %s' % (group.name, group.depth, + [ '%s (depth %s)' % (x.name, x.depth) for x in parents ])) sys.exit(0) results = { } @@ -158,12 +158,12 @@ if __name__ == '__main__': (options, args) = cli.parse() try: results = cli.run(options, args) - except errors.AnsibleError, e: + except errors.AnsibleError as e: # Generic handler for ansible specific errors - print "ERROR: %s" % str(e) + print("ERROR: %s" % str(e)) sys.exit(1) if options.json and not options.yaml: - print jsonify(results, format=True) + print(jsonify(results, format=True)) else: - print yaml.dump(results, Dumper=Dumper, allow_unicode=True) + print(yaml.dump(results, Dumper=Dumper, allow_unicode=True))