From dc101ecc30dce503c688f929fc08548e5f25dcf4 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Fri, 16 Apr 2010 17:18:23 +0200 Subject: [PATCH] Add ganeti.masterd module This will be used to keep masterd-specific code. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Guido Trotter <ultrotter@google.com> --- Makefile.am | 6 ++++++ lib/masterd/__init__.py | 26 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 lib/masterd/__init__.py diff --git a/Makefile.am b/Makefile.am index f6a00322d..89fbaca6f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -19,6 +19,7 @@ REPLACE_VARS_SED = autotools/replace_vars.sed hypervisordir = $(pkgpythondir)/hypervisor httpdir = $(pkgpythondir)/http +masterddir = $(pkgpythondir)/masterd confddir = $(pkgpythondir)/confd rapidir = $(pkgpythondir)/rapi toolsdir = $(pkglibdir)/tools @@ -39,6 +40,7 @@ DIRS = \ lib/confd \ lib/http \ lib/hypervisor \ + lib/masterd \ lib/rapi \ man \ qa \ @@ -140,6 +142,9 @@ confd_PYTHON = \ lib/confd/querylib.py \ lib/confd/server.py +masterd_PYTHON = \ + lib/masterd/__init__.py + docrst = \ doc/admin.rst \ doc/design-2.0.rst \ @@ -378,6 +383,7 @@ all_python_code = \ $(rapi_PYTHON) \ $(http_PYTHON) \ $(confd_PYTHON) \ + $(masterd_PYTHON) \ $(noinst_PYTHON) srclink_files = \ diff --git a/lib/masterd/__init__.py b/lib/masterd/__init__.py new file mode 100644 index 000000000..3b40b084d --- /dev/null +++ b/lib/masterd/__init__.py @@ -0,0 +1,26 @@ +# +# + +# Copyright (C) 2010 Google Inc. +# +# 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 2 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, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. + + +# empty file for package definition + +"""Masterd-related classes and functions. + +""" -- GitLab