Share Pastebin
Guest
Public paste!

Monachus

By: a guest | Feb 18th, 2010 | Syntax: None | Size: 0.54 KB | Hits: 39 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. # cat classes/network.pp
  2. class network {
  3.  
  4.   define reloadif () {
  5.      exec { "testlog":
  6.          command => "/bin/logger 'puppet-$name'"
  7.      }
  8.   }
  9.  
  10. }
  11.  
  12.  
  13.  
  14.  
  15. # cat site.pp
  16. import "classes/*.pp"
  17.  
  18. ...
  19.  
  20. class conmsdevice inherits commondevice {
  21.   include firewall
  22.  
  23.   file { "ifcfg-bond0.3":
  24.         name    => "/etc/sysconfig/network-scripts/ifcfg-bond0.3",
  25.         content => template("CO_NMS/etc/sysconfig/network-scripts/ifcfg-bond0.3"),
  26.         owner   => "root",
  27.         group   => "root",
  28.         mode    => "0644",
  29.         notify  => Exec["testlog"],
  30.   }
  31.  
  32. }
  33.  
  34. ...