summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipa-install/ipa-client-install
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-01-24 17:32:49 -0500
committerSimo Sorce <ssorce@redhat.com>2011-01-26 15:53:41 -0500
commit80e87e75bd6ab56e3e20c49ece55bd4d52f1a503 (patch)
tree9b1199c73efa6dedef4919391f1265e818fc972c /ipa-client/ipa-install/ipa-client-install
parentde46427e813ddbb2f695e0eec8899659b0b7f956 (diff)
downloadfreeipa-80e87e75bd6ab56e3e20c49ece55bd4d52f1a503.zip
freeipa-80e87e75bd6ab56e3e20c49ece55bd4d52f1a503.tar.gz
freeipa-80e87e75bd6ab56e3e20c49ece55bd4d52f1a503.tar.xz
Add an option for overriding the hostname value.
Ticket 834
Diffstat (limited to 'ipa-client/ipa-install/ipa-client-install')
-rwxr-xr-xipa-client/ipa-install/ipa-client-install5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index b233097..66e4a14 100755
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -81,6 +81,8 @@ def parse_options():
help="create home directories for users on their first login", default=False)
parser.add_option("", "--uninstall", dest="uninstall", action="store_true",
default=False, help="uninstall an existing installation")
+ parser.add_option("", "--hostname", dest="hostname",
+ help="The hostname of this server (FQDN). By default of nodename from uname(2) is used.")
options, args = parser.parse_args()
safe_opts = parser.get_safe_opts(options)
@@ -643,6 +645,9 @@ def main():
join_args = ["/usr/sbin/ipa-join", "-s", cli_server]
if options.debug:
join_args.append("-d")
+ if options.hostname:
+ join_args.append("-h")
+ join_args.append(options.hostname)
if options.principal is not None:
stdin = None
principal = options.principal