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