diff options
author | Martin Kosek <mkosek@redhat.com> | 2012-12-05 10:50:05 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-12-05 13:30:31 +0100 |
commit | 3896bf370a142eb95a4341e381ee7b1ff0f0c3e2 (patch) | |
tree | f6f803315b928cd73d9c2115a93ee0f593d252f7 /ipapython/platform/fedora16.py | |
parent | c6efd4c7aaf6961142b6fae5d30dd9691a493447 (diff) | |
download | freeipa.git-3896bf370a142eb95a4341e381ee7b1ff0f0c3e2.tar.gz freeipa.git-3896bf370a142eb95a4341e381ee7b1ff0f0c3e2.tar.xz freeipa.git-3896bf370a142eb95a4341e381ee7b1ff0f0c3e2.zip |
Change network configuration file
Fedora+systemd changed deprecated /etc/sysconfig/network which was
used by IPA to store static hostname for the IPA machine. See
https://bugzilla.redhat.com/show_bug.cgi?id=881785 for details.
Change Fedora platform files to store the hostname to /etc/hostname
instead.
https://fedorahosted.org/freeipa/ticket/3279
Diffstat (limited to 'ipapython/platform/fedora16.py')
-rw-r--r-- | ipapython/platform/fedora16.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ipapython/platform/fedora16.py b/ipapython/platform/fedora16.py index 83bb1157..8609e4c4 100644 --- a/ipapython/platform/fedora16.py +++ b/ipapython/platform/fedora16.py @@ -36,11 +36,15 @@ from ipalib import api # names are ipapython.services.wellknownservices # backup_and_replace_hostname -- platform-specific way to set hostname and # make it persistent over reboots +# restore_network_configuration -- platform-specific way of restoring network +# configuration (e.g. static hostname) # restore_context -- platform-sepcific way to restore security context, if # applicable # check_selinux_status -- platform-specific way to see if SELinux is enabled # and restorecon is installed. -__all__ = ['authconfig', 'service', 'knownservices', 'backup_and_replace_hostname', 'restore_context', 'check_selinux_status'] +__all__ = ['authconfig', 'service', 'knownservices', + 'backup_and_replace_hostname', 'restore_context', 'check_selinux_status', + 'restore_network_configuration'] # For beginning just remap names to add .service # As more services will migrate to systemd, unit names will deviate and @@ -204,3 +208,4 @@ authconfig = redhat.authconfig service = f16_service knownservices = Fedora16Services() backup_and_replace_hostname = redhat.backup_and_replace_hostname +restore_network_configuration = redhat.restore_network_configuration |