diff options
author | Seth Vidal <skvidal@fedoraproject.org> | 2007-09-27 17:45:33 -0400 |
---|---|---|
committer | Seth Vidal <skvidal@fedoraproject.org> | 2007-09-27 17:45:33 -0400 |
commit | 49649c3171b331b70e498fd9721eca485294a725 (patch) | |
tree | af98d25c2021de549338aab953db1e08d1e77f6d /func/commonconfig.py | |
parent | 05f84c547f8eadb46f70abc9f612a21225ed5994 (diff) | |
download | func-49649c3171b331b70e498fd9721eca485294a725.tar.gz func-49649c3171b331b70e498fd9721eca485294a725.tar.xz func-49649c3171b331b70e498fd9721eca485294a725.zip |
config crap in one file so we don't have recursive/impossible imports, I hope
Diffstat (limited to 'func/commonconfig.py')
-rw-r--r-- | func/commonconfig.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/func/commonconfig.py b/func/commonconfig.py new file mode 100644 index 0000000..d8bc144 --- /dev/null +++ b/func/commonconfig.py @@ -0,0 +1,17 @@ +#!/usr/bin/python + +from config import BaseConfig, BoolOption, IntOption, Option, ConfigError, read_config, ListOption + +class CMConfig(BaseConfig): + listen_addr = Option('') + listen_port = IntOption(51235) + cadir = Option('/etc/pki/func/ca') + certroot = Option('/var/lib/func/certmaster/certs') + csrroot = Option('/var/lib/func/certmaster/csrs') + autosign = BoolOption(False) + +class FuncdConfig(BaseConfig): + overlord_server = Option('funcmaster') + log_level = Option('INFO') + certmaster = Option('http://certmaster:51235/') + cert_dir = Option('/etc/pki/func') |