X-Git-Url: https://pwan.org/git/?p=certmaster.git;a=blobdiff_plain;f=certmaster%2Fcommonconfig.py;h=c062d28478a7bcde5ade8ad9b5dd5c1b013aa398;hp=baf6a881bb222f7c8fb4d936917cd33960eaf54a;hb=67e8a55e10f81105cb76e7c1ff9d0615cf97dff5;hpb=a419c0fb6d0456a058462ea31f76fbdbeac63d99 diff --git a/certmaster/commonconfig.py b/certmaster/commonconfig.py index baf6a88..c062d28 100644 --- a/certmaster/commonconfig.py +++ b/certmaster/commonconfig.py @@ -1,15 +1,38 @@ +""" +Default configuration values for certmaster items when +not specified in config file. + +Copyright 2008, Red Hat, Inc +see AUTHORS + +This software may be freely redistributed under the terms of the GNU +general public license. + +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., 675 Mass Ave, Cambridge, MA 02139, USA. +""" + + from config import BaseConfig, BoolOption, IntOption, Option class CMConfig(BaseConfig): + log_level = Option('INFO') listen_addr = Option('') + listen_port = IntOption(51235) cadir = Option('/etc/pki/certmaster/ca') + cert_dir = Option('/etc/pki/certmaster') certroot = Option('/var/lib/certmaster/certmaster/certs') csrroot = Option('/var/lib/certmaster/certmaster/csrs') + cert_extension = Option('cert') autosign = BoolOption(False) + sync_certs = BoolOption(False) + peering = BoolOption(True) + peerroot = Option('/var/lib/certmaster/peers') + hash_function = Option('sha256') - -class FuncdConfig(BaseConfig): +class MinionConfig(BaseConfig): log_level = Option('INFO') certmaster = Option('certmaster') + certmaster_port = IntOption(51235) cert_dir = Option('/etc/pki/certmaster') - acl_dir = Option('/etc/certmaster/minion-acl.d')