1 # vim: set et sts=4 sw=4 encoding=utf-8 :
3 from pymin.services import *
4 from pymin.dispatcher import Handler
5 from os.path import join
7 base_path = join('var', 'lib', 'pymin')
8 pickle_path = join(base_path, 'pickle')
9 # FIXME, this should be specific for each service
10 config_path = join(base_path, 'config')
14 pickle_dir = join(pickle_path, 'dhcp'),
15 config_dir = join(config_path, 'dhcp'))
17 pickle_dir = join(pickle_path, 'dns'),
19 'named.conf': join(config_path, 'dns'),
20 'zoneX.zone': join(config_path, 'dns', 'zones'),
22 firewall = FirewallHandler(
23 pickle_dir = join(pickle_path, 'firewall'),
24 config_dir = join(config_path, 'firewall'))
25 nat = NatHandler(pickle_dir = join(pickle_path, 'nat'))
27 pickle_dir = join(pickle_path, 'ip'),
28 config_dir = join(config_path, 'ip'))
30 pickle_dir = join(pickle_path, 'proxy'),
31 config_dir = join(config_path, 'proxy'))
33 pickle_dir = join(pickle_path, 'vrrp'),
34 config_dir = join(config_path, 'vrrp'))
36 pickle_dir = join(pickle_path, 'ppp'),
37 config_dir = join(config_path, 'ppp'))
41 '', # Bind IP ('' is ANY)