diff options
author | Tomas Babej <tbabej@redhat.com> | 2014-05-26 16:38:25 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-06-16 19:48:17 +0200 |
commit | c368aae048735cf23d43183fcae991e836655400 (patch) | |
tree | 8750175cf6548b2bbbb40fc028307d07543e0481 /ipaplatform | |
parent | 3fcaf81c6490141357205dc8eea072b26f694914 (diff) | |
download | freeipa-c368aae048735cf23d43183fcae991e836655400.tar.gz freeipa-c368aae048735cf23d43183fcae991e836655400.tar.xz freeipa-c368aae048735cf23d43183fcae991e836655400.zip |
ipaplatform: Add base fedora platform module
https://fedorahosted.org/freeipa/ticket/4052
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'ipaplatform')
-rw-r--r-- | ipaplatform/fedora/__init__.py | 22 | ||||
-rw-r--r-- | ipaplatform/fedora/paths.py | 26 | ||||
-rw-r--r-- | ipaplatform/fedora/services.py | 22 | ||||
-rw-r--r-- | ipaplatform/fedora/tasks.py | 22 |
4 files changed, 92 insertions, 0 deletions
diff --git a/ipaplatform/fedora/__init__.py b/ipaplatform/fedora/__init__.py new file mode 100644 index 000000000..fb172ed2b --- /dev/null +++ b/ipaplatform/fedora/__init__.py @@ -0,0 +1,22 @@ +# Authors: +# Tomas Babej <tbabej@redhat.com> +# +# Copyright (C) 2014 Red Hat +# see file 'COPYING' for use and warranty information +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +''' +This module contains Fedora specific platform files. +''' diff --git a/ipaplatform/fedora/paths.py b/ipaplatform/fedora/paths.py new file mode 100644 index 000000000..5425afebd --- /dev/null +++ b/ipaplatform/fedora/paths.py @@ -0,0 +1,26 @@ +# Authors: +# Tomas Babej <tbabej@redhat.com> +# +# Copyright (C) 2014 Red Hat +# see file 'COPYING' for use and warranty information +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +''' +This Fedora base platform module exports default filesystem paths as common +in Fedora-based systems. +''' + +# Fallback to default path definitions +from ipaplatform.base import * diff --git a/ipaplatform/fedora/services.py b/ipaplatform/fedora/services.py new file mode 100644 index 000000000..c2aa3b420 --- /dev/null +++ b/ipaplatform/fedora/services.py @@ -0,0 +1,22 @@ +# Author: Tomas Babej <tbabej@redhat.com> +# +# Copyright (C) 2014 Red Hat +# see file 'COPYING' for use and warranty information +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + +""" +Contains Fedora-specific service class implementations. +""" diff --git a/ipaplatform/fedora/tasks.py b/ipaplatform/fedora/tasks.py new file mode 100644 index 000000000..48a4ca70e --- /dev/null +++ b/ipaplatform/fedora/tasks.py @@ -0,0 +1,22 @@ +# Authors: +# Tomas Babej <tbabej@redhat.com> +# +# Copyright (C) 2014 Red Hat +# see file 'COPYING' for use and warranty information +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +''' +This module contains default Fedora-specific implementations of system tasks. +''' |