fix certmaster/func connections out for fedora 14/python 2.7
[certmaster.git] / certmaster / commonconfig.py
1 """
2 Default configuration values for certmaster items when
3 not specified in config file.
4
5 Copyright 2008, Red Hat, Inc
6 see AUTHORS
7
8 This software may be freely redistributed under the terms of the GNU
9 general public license.
10
11 You should have received a copy of the GNU General Public License
12 along with this program; if not, write to the Free Software
13 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
14 """
15
16
17 from config import BaseConfig, BoolOption, IntOption, Option
18
19 class CMConfig(BaseConfig):
20 log_level = Option('INFO')
21 listen_addr = Option('')
22 listen_port = IntOption(51235)
23 cadir = Option('/etc/pki/certmaster/ca')
24 cert_dir = Option('/etc/pki/certmaster')
25 certroot = Option('/var/lib/certmaster/certmaster/certs')
26 csrroot = Option('/var/lib/certmaster/certmaster/csrs')
27 cert_extension = Option('cert')
28 autosign = BoolOption(False)
29 sync_certs = BoolOption(False)
30 peering = BoolOption(True)
31 peerroot = Option('/var/lib/certmaster/peers')
32
33 class MinionConfig(BaseConfig):
34 log_level = Option('INFO')
35 certmaster = Option('certmaster')
36 certmaster_port = IntOption(51235)
37 cert_dir = Option('/etc/pki/certmaster')