Alexandros Kosiaris has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/344348 )

Change subject: Add an os parameter to netops::check
......................................................................


Add an os parameter to netops::check

Add an os parameter to netops::check that defaults to undef and is
passed as is to monitoring::host. This should allow us to define the
operating system for a networking device

Change-Id: I918289114bc5ababb76fb7665ed46eddd07f242b
---
M modules/netops/manifests/check.pp
1 file changed, 5 insertions(+), 0 deletions(-)

Approvals:
  Alexandros Kosiaris: Verified; Looks good to me, approved



diff --git a/modules/netops/manifests/check.pp 
b/modules/netops/manifests/check.pp
index 900c324..9dee5c7 100644
--- a/modules/netops/manifests/check.pp
+++ b/modules/netops/manifests/check.pp
@@ -26,6 +26,9 @@
 #   The parent devices of this device. Accepts either an array or a comma
 #   separate string. Defaults to undef
 #
+# [*os*]
+#   The operating system of the device. Defaults to undef.
+#
 # === Examples
 #
 #  netops::check { 'cr1-esams':
@@ -42,6 +45,7 @@
     $bgp=false,
     $interfaces=false,
     $parents=undef,
+    $os=undef,
 ) {
 
     # If we get an array convert it to a comma separated string
@@ -56,6 +60,7 @@
         ip_address => $ipv4,
         group      => $group,
         parents    => $real_parents,
+        os         => $os,
     }
 
     if $ipv6 {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I918289114bc5ababb76fb7665ed46eddd07f242b
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris <[email protected]>
Gerrit-Reviewer: Alexandros Kosiaris <[email protected]>
Gerrit-Reviewer: Giuseppe Lavagetto <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to