-
Notifications
You must be signed in to change notification settings - Fork 114
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 S3 support. #64
Adding S3 support. #64
Conversation
stat: path={{zookeeper_tarball_dir}}/zookeeper-{{zookeeper_version}}.tar.gz | ||
register: zookeeper_tarball_script | ||
|
||
- name: Download zookeeper from S3 |
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.
Provide the option of storing the tarball in Amazon S3.
when: > | ||
zookeeper_archive_s3_bucket is defined and | ||
zookeeper_archive_s3_object is defined and | ||
not zookeeper_tarball_script.stat.exists |
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.
We have to make sure all vars are defined, and that the tarball hasn't already been downloaded. The S3 directive will fail in some cases if the file exists.
- name: Download zookeeper version. | ||
get_url: url={{zookeeper_url}} dest={{zookeeper_tarball_dir}}/zookeeper-{{zookeeper_version}}.tar.gz | ||
tags: bootstrap | ||
register: zookeeper_tarball_downloaded | ||
when: > | ||
zookeeper_archive_s3_bucket is not defined or |
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.
If they missed either var, download from Apache.
Hi please rebase on master, build is now fixed with #67 |
8a29045
to
dc54ad7
Compare
@ernestas-poskus, rebased. |
LGTM, thank you contribution |
No description provided.