Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mcollective::plugin{"foo": type => "agent" }
- mcollective::plugin{"audit_foo": type => "audit", pluginname => "foo" }
- define mcollective::plugin ($type, $ensure="present", $pluginname="") {
- if $pluginname == "" {
- $plugname = $name
- } else {
- $plugname = $pluginname
- }
- if $ensure == "present" {
- file{"/usr/libexec/mcollective/mcollective/${type}/${plugname}.rb":
- owner => root,
- group => root,
- mode => 444,
- ensure => present,
- require => Class["mcollective::config"],
- notify => Class["mcollective::service"],
- source => "puppet:///modules/mcollective/${type}/${plugname}.rb"
- }
- } else {
- file{"/usr/libexec/mcollective/mcollective/${type}/${plugname}.rb":
- ensure => absent,
- notify => Class["mcollective::service"],
- }
- }
- }
Add Comment
Please, Sign In to add comment