diff options
author | Martin Kosek <mkosek@redhat.com> | 2012-01-04 20:04:21 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-01-13 09:11:05 +0100 |
commit | 95f3ec5d7053a54a393daf1f7d9a93be9d8a64fe (patch) | |
tree | 2e0242c7d4bf09617ba37a59a5757d91aa39a47c /install/tools/ipa-replica-prepare | |
parent | bc5085699d92369460c04050fad11bf64978fbd3 (diff) | |
download | freeipa-95f3ec5d7053a54a393daf1f7d9a93be9d8a64fe.tar.gz freeipa-95f3ec5d7053a54a393daf1f7d9a93be9d8a64fe.tar.xz freeipa-95f3ec5d7053a54a393daf1f7d9a93be9d8a64fe.zip |
Let replicas install without DNS
Let ipa-replica-prepare and ipa-replica-install work without
proper DNS records as records in /etc/hosts are sufficient for
DS replication.
1) ipa-replica-prepare now just checks if the replica hostname
is resolvable (DNS records are not required). It is now able
to prepare a replica file even when the replica IP address is
present in /etc/hosts only.
2) ipa-replica-install is now able to proceed when the hostname
is not resolvable. It uses an IP address passed in a new
option --ip-address to create a record in /etc/hosts in the
same way as ipa-server-install does.
https://fedorahosted.org/freeipa/ticket/2139
Diffstat (limited to 'install/tools/ipa-replica-prepare')
-rwxr-xr-x | install/tools/ipa-replica-prepare | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/install/tools/ipa-replica-prepare b/install/tools/ipa-replica-prepare index 269fe5f46..c54aa62b8 100755 --- a/install/tools/ipa-replica-prepare +++ b/install/tools/ipa-replica-prepare @@ -298,12 +298,6 @@ def main(): check_ipa_configuration(api.env.realm) - if not options.ip_address: - try: - api.Command['dns_resolve'](replica_fqdn.decode('utf-8')) - except errors.NotFound: - sys.exit("Neither an A nor AAAA record for host '%s' does not exist in DNS.\nUse the --ip-address option to add DNS entries for the replica." % replica_fqdn) - if api.env.host == replica_fqdn: print "You can't create a replica on itself" sys.exit(1) |