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

adding paramter to define whether or not to manage the config file at… #411

Merged
merged 1 commit into from
Nov 5, 2017

Conversation

zmarois
Copy link
Contributor

@zmarois zmarois commented Nov 2, 2017

I'm attempting to integrate this cassandra install with Priam. Priam manages the cassandra config, and the start/stop of the cassandra service, so I'd like to let it do that while still using this puppet module for initial install.

Replacement for PR-409 per @juniorsysadmin's reccommendation

@@ -132,6 +134,7 @@
$cassandra_yaml_tmpl = 'cassandra/cassandra.yaml.erb',
$commitlog_directory = undef,
$commitlog_directory_mode = '0750',
$manage_config_file = true,
Copy link
Member

Choose a reason for hiding this comment

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

Can you add the Boolean datatype to this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So, in the format: Boolean $manage_config_file = true,?

There are other Boolean parameters for this class. Should I update all the boolean parameters to have their type defined? Should I update all the parameters to have their data type defined?

Just trying to understand if you have some balance of consistency you are trying to maintain, or just attempting this as a start a better style pattern.

Copy link
Member

Choose a reason for hiding this comment

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

ah, sorry. I should be more clear. Puppet supports datatypes since a few releases. Migrating all existing parameter in all modules (we've 140 at the moment) takes quite some time. We would like to have datatypes at least for new parameters. It would be really awesome if you're interested in adding datatypes to other params as well, but that should happen in another pull request. The syntax you mentioned is correct. We've our review guidelines at the bottom of this page: https://voxpupuli.org/docs/#reviewing-a-module

@zmarois zmarois force-pushed the feature/optionally-manage-c branch from d59517c to cf45310 Compare November 2, 2017 21:04
@bastelfreak
Copy link
Member

@zmarois can you take a look at the failing spec test?

@zmarois zmarois force-pushed the feature/optionally-manage-c branch from 9990bb0 to 95746bc Compare November 3, 2017 12:11
@zmarois
Copy link
Contributor Author

zmarois commented Nov 3, 2017

Fixed it @bastelfreak. Is rebased and squashed well now. Sorry for the churn.

@juniorsysadmin juniorsysadmin added the enhancement New feature or request label Nov 4, 2017
@dallinb
Copy link
Contributor

dallinb commented Nov 5, 2017

Yep, these changes a clearer to read than #409.

@@ -132,6 +134,7 @@
$cassandra_yaml_tmpl = 'cassandra/cassandra.yaml.erb',
$commitlog_directory = undef,
$commitlog_directory_mode = '0750',
Boolean $manage_config_file = true,
Copy link
Member

Choose a reason for hiding this comment

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

Datatypes \o/

@@ -25,6 +25,8 @@
# @param commitlog_directory_mode [string] The mode for the
# `commitlog_directory` is ignored unless `commitlog_directory` is
# specified.
# @param manage_config_file [boolean] Whether or not to manage the cassandra configuration
Copy link
Member

Choose a reason for hiding this comment

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

puppet-strings \o/

@bastelfreak
Copy link
Member

Thanks @zmarois!

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

Successfully merging this pull request may close these issues.

4 participants