inventory / staging: switch staging default to mtu of 9000
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
3dd582a36c
commit
b77fdc9637
2 changed files with 9 additions and 8 deletions
|
@ -39,6 +39,7 @@ network_connections:
|
||||||
mac: "{{ ansible_default_ipv4.macaddress }}"
|
mac: "{{ ansible_default_ipv4.macaddress }}"
|
||||||
name: eth0
|
name: eth0
|
||||||
type: ethernet
|
type: ethernet
|
||||||
|
mtu: 9000
|
||||||
ocp_wildcard_cert_file: wildcard-2022.apps.ocp.stg.fedoraproject.org.cert
|
ocp_wildcard_cert_file: wildcard-2022.apps.ocp.stg.fedoraproject.org.cert
|
||||||
# This is the openshift wildcard cert for ocp stg
|
# This is the openshift wildcard cert for ocp stg
|
||||||
ocp_wildcard_cert_name: wildcard-2022.apps.ocp.stg.fedoraproject.org
|
ocp_wildcard_cert_name: wildcard-2022.apps.ocp.stg.fedoraproject.org
|
||||||
|
|
|
@ -120,12 +120,12 @@ class Cli(object):
|
||||||
hosts = I.list_hosts(pattern)
|
hosts = I.list_hosts(pattern)
|
||||||
groups = I.get_groups()
|
groups = I.get_groups()
|
||||||
if len(hosts) == 0:
|
if len(hosts) == 0:
|
||||||
print >>sys.stderr, "No hosts matched"
|
print("No hosts matched", file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if options.listhosts:
|
if options.listhosts:
|
||||||
for host in hosts:
|
for host in hosts:
|
||||||
print '%s' % host
|
print('%s' % host)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
if options.listgroups:
|
if options.listgroups:
|
||||||
|
@ -135,8 +135,8 @@ class Cli(object):
|
||||||
group_subset = list(set(flatten(group_subset)))
|
group_subset = list(set(flatten(group_subset)))
|
||||||
for group in group_subset:
|
for group in group_subset:
|
||||||
parents = group.get_ancestors()
|
parents = group.get_ancestors()
|
||||||
print '%s (depth %s): parents: %s' % (group.name, group.depth,
|
print('%s (depth %s): parents: %s' % (group.name, group.depth,
|
||||||
[ '%s (depth %s)' % (x.name, x.depth) for x in parents ])
|
[ '%s (depth %s)' % (x.name, x.depth) for x in parents ]))
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
results = { }
|
results = { }
|
||||||
|
@ -158,12 +158,12 @@ if __name__ == '__main__':
|
||||||
(options, args) = cli.parse()
|
(options, args) = cli.parse()
|
||||||
try:
|
try:
|
||||||
results = cli.run(options, args)
|
results = cli.run(options, args)
|
||||||
except errors.AnsibleError, e:
|
except errors.AnsibleError as e:
|
||||||
# Generic handler for ansible specific errors
|
# Generic handler for ansible specific errors
|
||||||
print "ERROR: %s" % str(e)
|
print("ERROR: %s" % str(e))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
if options.json and not options.yaml:
|
if options.json and not options.yaml:
|
||||||
print jsonify(results, format=True)
|
print(jsonify(results, format=True))
|
||||||
else:
|
else:
|
||||||
print yaml.dump(results, Dumper=Dumper, allow_unicode=True)
|
print(yaml.dump(results, Dumper=Dumper, allow_unicode=True))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue