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 support for running programs #604

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

deric
Copy link

@deric deric commented Feb 23, 2024

Summary

Support running programs executed by main haproxy process as described in docs. At least haproxy version 2.0 is required.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified. (For example puppet apply)

@@ -81,6 +82,10 @@
order => '10',
content => epp("${module_name}/haproxy-base.cfg.epp", $parameters),
}

if !empty($programs) {
create_resources(haproxy::program, $programs)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please don't use create_resources(), it's deprecated and we want to get rid of it. please iterate on $programs and call the defined resource for each element.

Copy link
Author

Choose a reason for hiding this comment

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

@bastelfreak Doesn't seem to be deprecated in stdlib v9.4.1 where can I find such deprecation note? Generally I'd try to avoid code repetition, this feels like a code smell. I've tried to replace it, but I'm not sure what you mean.

manifests/program.pp Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants