Monachus
By: a guest | Feb 18th, 2010 | Syntax:
None | Size: 0.54 KB | Hits: 39 | Expires: Never
# cat classes/network.pp
class network {
define reloadif () {
exec { "testlog":
command => "/bin/logger 'puppet-$name'"
}
}
}
# cat site.pp
import "classes/*.pp"
...
class conmsdevice inherits commondevice {
include firewall
file { "ifcfg-bond0.3":
name => "/etc/sysconfig/network-scripts/ifcfg-bond0.3",
content => template("CO_NMS/etc/sysconfig/network-scripts/ifcfg-bond0.3"),
owner => "root",
group => "root",
mode => "0644",
notify => Exec["testlog"],
}
}
...