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 env_vars parameter #1088

Merged
merged 1 commit into from
Mar 3, 2019
Merged

Add env_vars parameter #1088

merged 1 commit into from
Mar 3, 2019

Conversation

treydock
Copy link
Collaborator

@treydock treydock commented Mar 3, 2019

Pull Request Checklist

Description

Add env_vars parameter that provides environment variables to /etc/default/sensu.

Related Issue

Fixes #1074

Motivation and Context

Support arbitrary environment variables in /etc/default/sensu.

@@ -28,6 +28,8 @@
#
# @param path Used to set PATH in /etc/default/sensu
#
# @param env_vars Additional environment variables for /etc/default/sensu
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this specified in two places since there is only one /etc/default/sensu ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Was just following convention of parameters being documented in sensu and sensu::package. Since sensu::package is private I think having in sensu is sufficient.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Want me to remove or leave? All the other parameters in sensu::package are documented in 2 places.

Copy link
Collaborator

Choose a reason for hiding this comment

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

why is the param in both?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The public access is in sensu class and the sensu::package parameter pulls the value from $::sensu::env_vars so that template can use @env_vars. Also just how all the parameters in sensu::package are handled, was just following the convention. Could define in just sensu class and access via scope['sensu::env_vars'] in template but this would be the first time that pattern is used for parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants