From c368aae048735cf23d43183fcae991e836655400 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Mon, 26 May 2014 16:38:25 +0200 Subject: ipaplatform: Add base fedora platform module https://fedorahosted.org/freeipa/ticket/4052 Reviewed-By: Petr Viktorin --- ipaplatform/fedora/__init__.py | 22 ++++++++++++++++++++++ ipaplatform/fedora/paths.py | 26 ++++++++++++++++++++++++++ ipaplatform/fedora/services.py | 22 ++++++++++++++++++++++ ipaplatform/fedora/tasks.py | 22 ++++++++++++++++++++++ 4 files changed, 92 insertions(+) create mode 100644 ipaplatform/fedora/__init__.py create mode 100644 ipaplatform/fedora/paths.py create mode 100644 ipaplatform/fedora/services.py create mode 100644 ipaplatform/fedora/tasks.py (limited to 'ipaplatform') 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 +# +# 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 . + +''' +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 +# +# 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 . + +''' +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 +# +# 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 . +# + +""" +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 +# +# 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 . + +''' +This module contains default Fedora-specific implementations of system tasks. +''' -- cgit