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 firewall = FirewallHandler(
15 pickle_dir = join(pickle_path, 'firewall'),
16 config_dir = join(config_path, 'firewall'))
18 nat = NatHandler(pickle_dir = join(pickle_path, 'nat'))
21 pickle_dir = join(pickle_path, 'ppp'),
23 'pap-secrets': join(config_path, 'ppp'),
24 'chap-secrets': join(config_path, 'ppp'),
25 'options.X': join(config_path, 'ppp'),
26 'nameX': join(config_path, 'ppp', 'peers'),
30 pickle_dir = join(pickle_path, 'vpn'),
31 config_dir = join(config_path, 'vpn'))
34 pickle_dir = join(pickle_path, 'ip'),
35 config_dir = join(config_path, 'ip'))
38 pickle_dir = join(pickle_path, 'dns'),
40 'named.conf': join(config_path, 'dns'),
41 'zoneX.zone': join(config_path, 'dns', 'zones'),
45 pickle_dir = join(pickle_path, 'dhcp'),
46 config_dir = join(config_path, 'dhcp'))
49 pickle_dir = join(pickle_path, 'proxy'),
50 config_dir = join(config_path, 'proxy'))
53 pickle_dir = join(pickle_path, 'vrrp'),
54 config_dir = join(config_path, 'vrrp'),
55 pid_dir = join(config_path, 'vrrp', 'run'))
58 pickle_dir = join(pickle_path, 'vpn'),
59 config_dir = join(config_path, 'vpn'))
62 # pickle_dir = join(pickle_path, 'qos'),
63 # config_dir = join(config_path, 'qos'))
67 '', # Bind IP ('' is ANY)