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, 'ip'),
15 config_dir = join(config_path, 'ip'))
17 firewall = FirewallHandler(
18 pickle_dir = join(pickle_path, 'firewall'),
22 pickle_dir = join(pickle_path, 'dhcp'),
26 pickle_dir = join(pickle_path, 'dns'),
29 'zoneX.zone': '/var/lib/named',
32 nat = NatHandler(pickle_dir = join(pickle_path, 'nat'))
35 pickle_dir = join(pickle_path, 'proxy'),
36 config_dir = '/etc/squid')
39 pickle_dir = join(pickle_path, 'vrrp'),
40 config_dir = join(config_path, 'vrrp'),
44 pickle_dir = join(pickle_path, 'ppp'),
46 'pap-secrets': '/etc/ppp',
47 'chap-secrets': '/etc/ppp',
48 'options.X': '/etc/ppp',
49 'nameX': '/etc/ppp/peers',
54 '', # Bind IP ('' is ANY)