summaryrefslogtreecommitdiffstats
path: root/ipa-client
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2008-03-14 08:42:06 -0400
committerSimo Sorce <ssorce@redhat.com>2008-03-14 08:42:06 -0400
commit8bfe814358a25e67755c5389e0f35ba97ec0558a (patch)
tree027a55ec5a705e91d9a5413257f264f130a9664f /ipa-client
parente54a16ae1ce45af4c250dbbbb13893b9a8dc2190 (diff)
downloadfreeipa-8bfe814358a25e67755c5389e0f35ba97ec0558a.tar.gz
freeipa-8bfe814358a25e67755c5389e0f35ba97ec0558a.tar.xz
freeipa-8bfe814358a25e67755c5389e0f35ba97ec0558a.zip
Allow client install to specify ntp server name
Diffstat (limited to 'ipa-client')
-rw-r--r--ipa-client/ipa-install/ipa-client-install7
1 files changed, 6 insertions, 1 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index 8fe7965e5..fce17e877 100644
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -33,6 +33,7 @@ def parse_options():
parser.add_option("-U", "--unattended", dest="unattended",
action="store_true",
help="unattended installation never prompts the user")
+ parser.add_option("--ntp-server", dest="ntp_server", help="ntp server to use")
parser.add_option("-N", "--no-ntp", action="store_false",
help="do not configure ntp", default=True, dest="conf_ntp")
parser.add_option("--on-master", dest="on_master", action="store_true",
@@ -263,7 +264,11 @@ def main():
print "Kerberos 5 enabled"
if options.conf_ntp and not options.on_master:
- ipaclient.ntpconf.config_ntp(ds.getServerName())
+ if options.ntp_server:
+ ntp_server = options.ntp_server
+ else:
+ ntp_server = ds.getServerName()
+ ipaclient.ntpconf.config_ntp(ntp_server)
print "NTP enabled"
print "Client configuration complete."