Skip to content
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

Merged
merged 1 commit into from Jul 10, 2018
Merged

Add powerdns plugin #824

merged 1 commit into from Jul 10, 2018

Conversation

sileht
Copy link
Contributor

@sileht sileht commented Jun 28, 2018

Add powerdns plugin

@sileht
Copy link
Contributor Author

sileht commented Jul 9, 2018

@bastelfreak can you take a look ?

# See http://collectd.org/documentation/manpages/collectd.conf.5.shtml#plugin_powerdns
class collectd::plugin::powerdns (
$ensure = 'present',
$order = 10,
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Optional[String] $local_socket = undef,
) {

include ::collectd
Copy link
Member

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

Copy link
Contributor Author

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 = [],
Copy link
Member

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

Copy link
Contributor Author

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::server (
$ensure = 'present',
Optional[String] $socket = undef,
Array[String] $collect = [],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please align the =

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@bastelfreak bastelfreak added enhancement New feature or request needs-work not ready to merge just yet labels Jul 9, 2018
@bastelfreak
Copy link
Member

thanks!

@bastelfreak bastelfreak merged commit c849a91 into voxpupuli:master Jul 10, 2018
@bastelfreak bastelfreak removed the needs-work not ready to merge just yet label Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants