summaryrefslogtreecommitdiffstats
path: root/ipsilon/helpers
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-04-28 13:58:51 -0400
committerSimo Sorce <simo@redhat.com>2014-05-01 21:05:47 -0400
commitaaed708431955d4cc01e82f003c9d35851073510 (patch)
tree766f730d49469ab09cd26271d37e178f942d5578 /ipsilon/helpers
parentf139821010d71a07e011b257132b4acbc872a21b (diff)
downloadipsilon-aaed708431955d4cc01e82f003c9d35851073510.tar.gz
ipsilon-aaed708431955d4cc01e82f003c9d35851073510.tar.xz
ipsilon-aaed708431955d4cc01e82f003c9d35851073510.zip
Add Environment Helpers installer framework
Environment helpers are meta-plugins that allow to set ipsilon in well defined environments. For example when ipsilon is install in a FreeIPA or AD domains and authentication methods, cetificate, keytabs etc, can be pre-configured and deployed at the same time the server is installed with minimal effort and wellknown methods. These are run before any of the other plugins as they can chage the configuration option for any of the plugins, enable or disable plugins, or pre-configure some elements. Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/helpers')
-rw-r--r--ipsilon/helpers/__init__.py0
-rwxr-xr-xipsilon/helpers/common.py27
2 files changed, 27 insertions, 0 deletions
diff --git a/ipsilon/helpers/__init__.py b/ipsilon/helpers/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ipsilon/helpers/__init__.py
diff --git a/ipsilon/helpers/common.py b/ipsilon/helpers/common.py
new file mode 100755
index 0000000..6ec2819
--- /dev/null
+++ b/ipsilon/helpers/common.py
@@ -0,0 +1,27 @@
+#!/usr/bin/python
+#
+# Copyright (C) 2014 Simo Sorce <simo@redhat.com>
+#
+# 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/>.
+
+from ipsilon.util.plugin import PluginInstaller
+
+
+class EnvHelpersInstall(object):
+
+ def __init__(self):
+ pi = PluginInstaller(EnvHelpersInstall)
+ self.plugins = pi.get_plugins()