modularize db-config
[myplc.git] / db-config.d / 07-netflow_slice
1 # Create/update system slices
2
3 # get the MyPLC url
4 url = GetMyPLCURL()
5
6 description = """PlanetFlow Traffic Auditing Service.
7 Logs, captured in the root context using fprobe-ulogd, are stored in a
8 directory in the root context which is bind mounted to the planetflow
9 slice.  The Planetflow Central service then periodically rsyncs these
10 logs from the planetflow slice for aggregation."""
11
12 slice = \
13 {
14     'name': plc['slice_prefix'] + "_netflow",
15     'description': description,
16     'url': url,
17     'instantiation': "plc-instantiated",
18     # Renew forever (minus one day, work around date conversion weirdness)
19     'expires': 0x7fffffff - (60 * 60 * 24)
20 }
21     
22 tags = \
23 [
24     ('system', "1"),
25     ('vref', "planetflow"),
26     ('vsys', "pfmount")
27 ]
28
29 SetSlice(slice,tags)