Yuvipanda has submitted this change and it was merged.

Change subject: Put project name in 'notes' field of host
......................................................................


Put project name in 'notes' field of host

Labs' graphite metrics architecture means we need both the
project name and the hostname to find a full path to our
host. Abusing this field for that purpose.

Change-Id: If097526f413f36407acdff852cc81216f9c84556
---
M shingen/generators/hosts.py
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Yuvipanda: Verified; Looks good to me, approved



diff --git a/shingen/generators/hosts.py b/shingen/generators/hosts.py
index 8cb5d46..0afb391 100644
--- a/shingen/generators/hosts.py
+++ b/shingen/generators/hosts.py
@@ -8,4 +8,5 @@
     projects = [project_name, config.get('default-hostgroup', 'labshost')]
     co.properties['hostgroups'] = ','.join(projects)
     co.properties['contact_groups'] = project_name
+    co.properties['notes'] = project_name # Used for auto deriving graphite 
path
     return co

-- 
To view, visit https://gerrit.wikimedia.org/r/172414
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If097526f413f36407acdff852cc81216f9c84556
Gerrit-PatchSet: 2
Gerrit-Project: operations/software/shinkengen
Gerrit-Branch: master
Gerrit-Owner: Yuvipanda <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to