-
-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add powerdns plugin #824
Add powerdns plugin #824
Conversation
@bastelfreak can you take a look ? |
manifests/plugin/powerdns.pp
Outdated
# See http://collectd.org/documentation/manpages/collectd.conf.5.shtml#plugin_powerdns | ||
class collectd::plugin::powerdns ( | ||
$ensure = 'present', | ||
$order = 10, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add datatypes for all parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
manifests/plugin/powerdns.pp
Outdated
Optional[String] $local_socket = undef, | ||
) { | ||
|
||
include ::collectd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please don't add the :: in front of classes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
define collectd::plugin::powerdns::recursor ( | ||
$ensure = 'present', | ||
Optional[String] $socket = undef, | ||
Array[String] $collect = [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please align the = chars. For all the strings you could also do something like Optional[String[1]]
which enforces a minimal string length of 1, so ''
isn't valid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
manifests/plugin/powerdns/server.pp
Outdated
define collectd::plugin::powerdns::server ( | ||
$ensure = 'present', | ||
Optional[String] $socket = undef, | ||
Array[String] $collect = [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please align the =
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
thanks! |
Add powerdns plugin