-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Allow CPU and Memory to be templatable #1715
Conversation
this is why complex fields are a problem, we cannot validate in the spec |
Thanks @nikhilo for this PR. This PR requires revisions, either because it fails to build or by reviewer request. Please make the suggested revisions. When you are done, please comment with text 'ready_for_review' and we will put this PR back into review. [This message brought to you by your friendly Ansibull-bot.] |
ready_for_review |
Thanks @nikhilo. To the current maintainers, @Java1Guy please review according to guidelines (http://docs.ansible.com/ansible/developing_modules.html#module-checklist) and comment with text 'shipit', 'needs_revision' or 'close_me' as appropriate. [This message brought to you by your friendly Ansibull-bot.] |
any news on that? |
If you are going to make memory and cpu template-able it would be nice to be able to template portMappings.containerPort and portMappings.hostPort as well. This way the whole module could be handed an array of containers and their individual values. Inside of the for loop you added add an inner for loop.
|
This will allow the authorized_module to accept options that can be passed multiple times into ssh options. For instance permitopen.
@sgviking I don't think it's necessary to make the port mappings templatable. Since the port mappings is an array, you would be able to templatize them like so,
I verified that above pattern works |
Any progress on merging this? Looks good to me, and this is a highly important bug fix |
…nks @nikhilo), rebased on the new ecs_taskdefinition.py
Thanks @nikhilo for this PR. Unfortunately, it is not mergeable in its current state due to merge conflicts. Please rebase your PR. When you are done, please comment with text 'ready_for_review' and we will put this PR back into review. For help on how to do this cleanly please see http://docs.ansible.com/ansible/community.html#contributing-code-features-or-bugfixes [This message brought to you by your friendly Ansibull-bot.] |
@nikhilo A friendly reminder: this pull request has been marked as needing your action. If you still believe that this PR applies, and you intend to address the issues with this PR, just let us know in the PR itself and we will keep it open pending your changes. When you do address the issues, please respond with ready_for_review in your comment, so that we can notify the maintainer. [This message brought to you by your friendly Ansibull-bot.] |
This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible Please read through the repomerge page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo. |
Since I have lost access to the repo I contributed from; |
Issue Type:
Plugin Name:
ecs_taskdefinition
Ansible Version:
Summary:
Currently, the module does not allow the CPU and Memory parameters to be templatable. They must be integer/long. This makes the module unusable with variables. In other words, we would need to call the module for every task definition.
This change will allow the CPU and Memory to be templatable like so,
Example output:
Error before change:
This error is not seen with suggested change