inventory / staging: switch staging default to mtu of 9000

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2022-05-15 13:14:03 -07:00
parent 3dd582a36c
commit b77fdc9637
2 changed files with 9 additions and 8 deletions

View File

@ -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

View File

@ -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))