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

Realize exported Vrrp:Script resources #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jconroy77
Copy link

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.

@jconroy77 jconroy77 force-pushed the collect_track_script branch 3 times, most recently from 80730e1 to 06c31b8 Compare October 8, 2016 06:05
@jconroy77 jconroy77 force-pushed the collect_track_script branch from 06c31b8 to fa7bfac Compare October 8, 2016 06:11
@jconroy77
Copy link
Author

jconroy77 commented Oct 8, 2016

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 $tag value (a munged version of Foreman's $::hostgroup for our use case).

@arioch arioch force-pushed the master branch 2 times, most recently from 04a3890 to 36ab576 Compare January 18, 2017 15:02
@@ -174,7 +181,7 @@
$dont_track_primary = false,
$use_vmac = false,
$vmac_xmit_base = true,

$collect_exported = false,
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 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)
Copy link
Member

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

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 -%>
Copy link
Member

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).

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

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?

@vox-pupuli-tasks
Copy link

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
@vox-pupuli-tasks
Copy link

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

@vox-pupuli-tasks
Copy link

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

@vox-pupuli-tasks
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request merge-conflicts needs-rebase needs-work not ready to merge just yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants