Needed to change the semantics of SetSlice(), which previously would
[myplc.git] / db-config.d / 08-sirius_slice
1 # Create/update system slices
2
3 # get the MyPLC url
4 url = GetMyPLCURL()
5
6 descript = """The Sirius Calendar Service.
7
8 Sirius provides system-wide reservations of CPU and outgoing
9 bandwidth.  Sign up for hour-long slots using the Web GUI at the
10 PlanetLab website.
11
12 This slice should not generate traffic external to PlanetLab."""
13
14 slice = \
15 {
16     'name': plc['slice_prefix'] + "_sirius",
17     'description': description,
18     'url': url + "db/sirius/index.php",
19     'instantiation': "plc-instantiated",
20     # Renew forever (minus one day, work around date conversion weirdness)
21     'expires': 0x7fffffff - (60 * 60 * 24)
22 }
23
24 tags = \
25 [
26     ('system', "1"),
27     ('net_min_rate', "2000"),
28     ('cpu_pct', "25"),
29     ('initscript', plc['slice_prefix'] + "_sirius")
30 ]
31
32 SetSlice(slice,tags)