2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-06-19 18:10:56 +00:00

nodeconfig ntp servers for smms

This commit is contained in:
weragrzeda
2023-08-16 14:30:05 +02:00
parent c7a323b370
commit 44405baaf3
+16 -4
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/libexec/platform-python
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2017 Lenovo
@@ -98,8 +98,17 @@ cfgpaths = {
'static_v6_gateway'),
'bmc.hostname': (
'configuration/management_controller/hostname', 'hostname'),
'bmc.ntp': (
'configuration/management_controller/ntp/enabled', 'state'),
'bmc.ntpServer1': (
'configuration/management_controller/ntp/servers/1', 'server'),
'bmc.ntpServer2': (
'configuration/management_controller/ntp/servers/2', 'server'),
'bmc.ntpServer3': (
'configuration/management_controller/ntp/servers/3', 'server')
}
autodeps = {
'bmc.ipv4_address': (('bmc.ipv4_method', 'static'),)
}
@@ -113,6 +122,7 @@ client.check_globbing(noderange)
setmode = None
assignment = {}
queryparms = {}
printsys = []
printbmc = []
printextbmc = []
@@ -131,7 +141,6 @@ if len(args) == 1 or options.exclude:
queryparms[path] = {}
queryparms[path][attrib] = candidate
def _assign_value():
if key not in cfgpaths:
setsys[key] = value
@@ -233,6 +242,7 @@ else:
parse_config_line(args[1:])
session = client.Command()
rcode = 0
if options.restoredefault:
session.stop_if_noderange_over(noderange, options.maxnodes)
if options.restoredefault.lower() in (
@@ -295,8 +305,10 @@ else:
for path in queryparms:
if options.comparedefault:
continue
rcode |= client.print_attrib_path(path, session, list(queryparms[path]),
NullOpt(), queryparms[path])
rcode |= client.print_attrib_path(path, session, list(queryparms[path]),NullOpt(), queryparms[path])
if printsys == 'all' or printextbmc or printbmc or printallbmc:
if printbmc or not printextbmc:
rcode |= client.print_attrib_path(