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

(MODULES-8407) Add option to set the service's name #342

Merged
merged 1 commit into from
Jan 8, 2019

Conversation

genebean
Copy link

This is being added to support using the software collection for haproxy
on CentOS. Before this change both the name of the service being managed
and the sysconfig file for the service were incorrect and could not be
coaxed into a valid state.

This is being added to support using the software collection for haproxy
on CentOS. Before this change both the name of the service being managed
and the sysconfig file for the service were incorrect and could not be
coaxed into a valid state.
@genebean genebean changed the title Add option to set the service's name (MODULES-8407) Add option to set the service's name Dec 26, 2018
Copy link

@binford2k binford2k left a comment

Choose a reason for hiding this comment

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

Seems reasonable to me

@@ -188,6 +194,8 @@
$_config_dir = pick($config_dir, inline_template($haproxy::params::config_dir_tmpl))
}

$instance_service_name = pick($service_name, $instance_name)

haproxy::config { $title:
instance_name => $instance_name,

Choose a reason for hiding this comment

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

Do you need to use your new variable here too?

Copy link
Author

Choose a reason for hiding this comment

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

Not sure what you are asking @binford2k... this should use the new service_name param's value if its set and, if not, default back to what has been done historically... am I missing something?

@genebean
Copy link
Author

genebean commented Jan 3, 2019

Just thought I would send a post-holidays ping to see what's next here.

@HelenCampbell
Copy link

This looks good and has been through an adhoc pipeline, as a result merging. Thank you!

@HelenCampbell HelenCampbell merged commit 04def00 into puppetlabs:master Jan 8, 2019
@genebean genebean deleted the service_name branch January 8, 2019 15:44
@lionce lionce added the bugfix label Feb 1, 2019
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.

4 participants