Guest User

metric.rb

a guest
Sep 23rd, 2011
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #cat modules/lemon/lib/puppet/type/metric.rb
  2.  
  3. Puppet::Type.newtype(:metric) do
  4. @doc = "Manage metrics"
  5.  
  6. ensurable
  7.  
  8. newparam(:id) do
  9. desc "The metric id number"
  10. isnamevar
  11. end
  12.  
  13. newparam(:name) do
  14. desc "The name of the metric to be used in Lemon server and on the web, it is the identifier"
  15. end
  16.  
  17. end
Advertisement
Add Comment
Please, Sign In to add comment