Topface / ansible-marathon_app

Deploy apps on marathon from ansible.
MIT License
8 stars 5 forks source link

Set instances value for a marathon app dynamically #1

Open pradeepchhetri opened 9 years ago

pradeepchhetri commented 9 years ago

I want to pass instances value for a marathon app as a command line argument. I tried changing the application playbook like:

instances: "{{ count|int }}"

But this ends up producing the json with key like

instances: "4" while marathon only accepts instances value as integer e.g. instances: 4

Is there any workaround to have it correct.

Thanks.

bobrik commented 9 years ago

Blame ansible: https://github.com/ansible/ansible/issues/5463#issuecomment-107240542

pradeepchhetri commented 9 years ago

@bobrik Will you suggest any workaround. I need it to work somehow.

bobrik commented 9 years ago

I don't have any workaround. Tell ansible developers about your frustration, maybe they'll listen.

pradeepchhetri commented 9 years ago

Thank you for your support :+1:

ludovicc commented 8 years ago

This is fixed in the marathon module that I have developped

pradeepchhetri commented 8 years ago

@ludovicc Thank you very much. I will try your fork soon. I will let you know how it goes.

j3k0 commented 7 years ago

@ludovicc I'm giving your fork a try. It seems you are more actively maintaining it. However I can't get my apps to run ;-) GitHub issues are not opened on your fork, if they were it would be a better place to discuss the issue.

Anyway, it seems the syntax changed quite a bit from bobrik's original module, do you have some example or documentation?

ludovicc commented 7 years ago

@j3k0 yes you can see how I manage my infrastructure in this project: https://github.com/LREN-CHUV/mip-microservices-infrastructure/

Many roles now use the marathon_app module to start application with Marathon, for example roles/airflow or roles/portal/database.

You can use one of the demo that run in Vagrant containers to play with Mesos and some applications.