Skip to content
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

Merged
merged 1 commit into from
May 18, 2017

Conversation

jlm3575
Copy link

@jlm3575 jlm3575 commented May 9, 2017

No description provided.

stat: path={{zookeeper_tarball_dir}}/zookeeper-{{zookeeper_version}}.tar.gz
register: zookeeper_tarball_script

- name: Download zookeeper from S3
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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.

@ernestas-poskus
Copy link
Member

Hi please rebase on master, build is now fixed with #67

@jlm3575 jlm3575 force-pushed the jlm3575/s3-support branch from 8a29045 to dc54ad7 Compare May 17, 2017 14:52
@jlm3575
Copy link
Author

jlm3575 commented May 17, 2017

@ernestas-poskus, rebased.

@ernestas-poskus
Copy link
Member

LGTM, thank you contribution

@ernestas-poskus ernestas-poskus merged commit 3ac38ed into AnsibleShipyard:master May 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants