-
Notifications
You must be signed in to change notification settings - Fork 104
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
Allow additional mesos master and slave configs #56
Allow additional mesos master and slave configs #56
Conversation
@lhoss please bump https://github.com/AnsibleShipyard/ansible-mesos/blob/master/vars/main.yml#L2 to |
@lhoss can you provide links to documentation, are you sure all additional config begins with |
|
||
# Additional configs | ||
{% for config_item in mesos_master_additional_configs %} | ||
export MESOS_{{config_item.name}}={{config_item.value}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 creative
I bumped the version, but now it conflicts. How should we proceed? ( Should I solve by merging latest master into my branch first ?) |
http://mesos.apache.org/documentation/latest/configuration/
|
@lhoss rebase on master, there were changes of |
I have checked It says
I am not sure whether this is implicitly set by MESOS, in this case it must be defined here explicitly before other expoerts, please define it and make 'MESOS_' as configurable variable. |
446dd5e
to
ada1223
Compare
ada1223
to
0aa2349
Compare
@ernestas-poskus rebased 👍 |
http://mesos.apache.org/documentation/latest/configuration/ Please export explicitly MESOS_OPTION_NAME="{{ mesos_option_name }}" in both slave/master templates and in defauflts/main.yml |
@ernestas-poskus ah I forget to ask for clarification about MESOS_OPTION_NAME: |
@lhoss yes please make and export MESOS_OPTION_NAME to that variable so it would be explicit and obvious for others |
ok will do now! |
@ernestas-poskus For consistency then, we should also replace the 'MESOS_' string in the conf-mesos.j2 template (that I repeat wasn't enhanced in this PR). ok for you?
Finally you want me to add the export to all 3 conf-mesos* files ? (Else I'ld only add to the main |
👍 |
those ☝️ could be referenced in It's up to you whether you want to do it in this PR or other |
Good job 👍 |
@@ -13,6 +13,7 @@ ZK="{{ mesos_zookeeper_masters }}" | |||
export MESOS_HOSTNAME="{{ mesos_hostname }}" | |||
|
|||
# Additional configs | |||
export MESOS_OPTION_PREFIX={{mesos_option_prefix}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I'ld rather get this merged 👍 |
To be sure I exactly understand your proposed change. taking out the hardcoded lines in the template:
and add entries to the corresponding list var(s) ?
|
exactly |
thank you for contribution 👍 |
This allows very flexible additional configurations.
Example usage, that we use in prod. both for the master and slave:
@ernestas-poskus any chance to get a review and potential merge ?!