From c1f01d2f9766b00f6ad9c6636378ee74659d9fcf Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Mon, 7 Dec 2009 21:34:27 +0000 Subject: [PATCH] add tag types for sites and persons add new tags for nodes and slices for exemption from myops --- db-config.d/02-nodetags | 5 +++++ db-config.d/04-slicetags | 5 +++++ db-config.d/12-sitetags | 9 +++++++++ db-config.d/13-persontags | 9 +++++++++ 4 files changed, 28 insertions(+) create mode 100644 db-config.d/12-sitetags create mode 100644 db-config.d/13-persontags diff --git a/db-config.d/02-nodetags b/db-config.d/02-nodetags index b05f15e..8991a9f 100644 --- a/db-config.d/02-nodetags +++ b/db-config.d/02-nodetags @@ -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) diff --git a/db-config.d/04-slicetags b/db-config.d/04-slicetags index d10099e..89faa9f 100644 --- a/db-config.d/04-slicetags +++ b/db-config.d/04-slicetags @@ -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 index 0000000..982f81b --- /dev/null +++ b/db-config.d/12-sitetags @@ -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 index 0000000..d4fb89b --- /dev/null +++ b/db-config.d/13-persontags @@ -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) -- 2.43.0