add tag types for sites and persons
authorStephen Soltesz <soltesz@cs.princeton.edu>
Mon, 7 Dec 2009 21:34:27 +0000 (21:34 +0000)
committerStephen Soltesz <soltesz@cs.princeton.edu>
Mon, 7 Dec 2009 21:34:27 +0000 (21:34 +0000)
add new tags for nodes and slices for exemption from myops

db-config.d/02-nodetags
db-config.d/04-slicetags
db-config.d/12-sitetags [new file with mode: 0644]
db-config.d/13-persontags [new file with mode: 0644]

index b05f15e..8991a9f 100644 (file)
@@ -12,6 +12,11 @@ default_node_tags = [
       'description' : 'typically "alpha", "beta", or "production"',
       'category' : 'node/operation', 
       'min_role_id' : 10} ,
+
+    { 'tagname' : 'exempt_node_until',
+      'description' : 'Exclude this node from MyOps until given date (YYYYMMDD)',
+      'category' : 'node/myops', 
+      'min_role_id' : 10} ,
     ]
 
 for node_type in default_node_tags: SetTagType (node_type)
index d10099e..89faa9f 100644 (file)
@@ -139,6 +139,11 @@ slicetag_types = \
      'description': "map unused raw disk devices into the slice",
      'category' : 'slice/access', # we should get rid of this category thing
      'min_role_id': 20}
+
+    { 'tagname' : 'exempt_slice_until',
+      'description' : 'Exclude this slice from MyOps until given date (YYYYMMDD)',
+      'category' : 'slice/myops', 
+      'min_role_id' : 10} ,
 ]
 
 # add in the platform supported rlimits to the default_attribute_types
diff --git a/db-config.d/12-sitetags b/db-config.d/12-sitetags
new file mode 100644 (file)
index 0000000..982f81b
--- /dev/null
@@ -0,0 +1,9 @@
+########
+default_site_tags = [
+    { 'tagname' : 'exempt_site_until',
+      'description' : 'Exclude this site from MyOps until given date (YYYYMMDD)',
+      'category' : 'site/myops', 
+      'min_role_id' : 10} ,
+]
+
+for site_type in default_site_tags: SetTagType (site_type)
diff --git a/db-config.d/13-persontags b/db-config.d/13-persontags
new file mode 100644 (file)
index 0000000..d4fb89b
--- /dev/null
@@ -0,0 +1,9 @@
+########
+default_person_tags = [
+    { 'tagname' : 'exempt_person_until',
+      'description' : 'Exclude this person from MyOps until given date (YYYYMMDD)',
+      'category' : 'person/myops', 
+      'min_role_id' : 10} ,
+]
+
+for person_type in default_person_tags: SetTagType (person_type)