-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Realize exported Vrrp:Script resources #117
base: master
Are you sure you want to change the base?
Conversation
80730e1
to
06c31b8
Compare
06c31b8
to
fa7bfac
Compare
If this is accepted, I also have another followup PR that will add a param $filter_on_tag for the collectors to enable filtering on the $tag metaparameter based on the value of $filter_on_tag. We do exports across datacenters, so we need to be able to filter based on a |
04a3890
to
36ab576
Compare
@@ -174,7 +181,7 @@ | |||
$dont_track_primary = false, | |||
$use_vmac = false, | |||
$vmac_xmit_base = true, | |||
|
|||
$collect_exported = false, |
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 a datatype to the new parameter.
@@ -185,10 +192,22 @@ | |||
fail('virtual_router_id must be an integer >= 1 and <= 255') | |||
} | |||
|
|||
validate_bool($collect_exported) |
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.
this isn't required after adding a datatype
$rise = undef, | ||
$timeout = undef, | ||
$no_weight = false, | ||
$vrrp_instance = undef, |
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.
same here, please add a datatype
@@ -0,0 +1,81 @@ | |||
<%- if @track_script or @collect_exported -%> |
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.
could you add a comment at the top like # THIS FILE IS MANAGED BY PUPPET
?
Are you interested in converting this to an epp template? That's our prefered template language (but erb works as well).
hi @jconroy77, thanks for the PR. This repository got recently migrated to us. Are you able to rebase this and take a look at the inline comments I made? |
Dear @jconroy77, thanks for the PR! This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
2 similar comments
Dear @jconroy77, thanks for the PR! This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Dear @jconroy77, thanks for the PR! This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Dear @jconroy77, thanks for the PR! This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Added option to collect exported vrrp::script resources (similar to how lvs::virtual_server collects exported lvs::real_server resources) so that the real_servers can export check scripts that contain identifying information (such as IP address, etc).
The $collect_exported param is defaulted to false to avoid changing the current behavior though an empty track_script{} block doesn't appear to cause any issues when added to the config so it may be preferable to default it to true to mimic the virtual_server/real_server functionality.