-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add ansible deploy options #4619
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4619 +/- ##
==========================================
- Coverage 84.54% 78.77% -5.77%
==========================================
Files 183 183
Lines 8308 8308
Branches 571 571
==========================================
- Hits 7024 6545 -479
- Misses 1284 1763 +479
Continue to review full report at Codecov.
|
@@ -17,13 +17,6 @@ | |||
--- | |||
# This role will install Kafka with Zookeeper in group 'kafka' in the environment inventory | |||
|
|||
- name: "pull the zookeeper:{{ zookeeper.version }} image" |
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.
LGTM - not sure why there was a separate pull task.
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.
Looks like intuitive coding the same as manual operation.
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 think all 3rd images are a separate task to have retries with delays and be configurable
I think I remember the docker will try once to pull and first error doesn’t retry
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 thought so too but then noticed Kafka didn't have the same pull task - so I dismissed that explanation.
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.
The retry here is meaningless, since errors happened here are fatal for deployment.
e.g. image name/tag spelled wrong, wrong password for docker repo, network timeout, etc.
All we should do is to fix them and re-deploy, instead of retrying.
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.
@rabbah
Sorry for my bold clicked. ORZ
Not very familiar with the Github buttons.
Thanks for the contribution. |
* add docker image pull option for kafka ansible deployment * add docker image pull option for zookeeper ansible deployment and remove mandatory pull task
Add docker image pull (or not) options to kafka and zookeeper deployment.
Description
If the docker tagged(especially the "latest") image is already in environment machine, adding this option could speed up deployment.
Related issue and scope
My changes affect the following components
Types of changes
Checklist: