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

Creating alias for setting minio #247

Merged
merged 1 commit into from Mar 4, 2020
Merged

Creating alias for setting minio #247

merged 1 commit into from Mar 4, 2020

Conversation

fao89
Copy link
Member

@fao89 fao89 commented Mar 3, 2020

@fao89 fao89 requested a review from daviddavis March 3, 2020 19:07
@daviddavis
Copy link
Contributor

This looks good to me. I left some comments. Probably should have @dkliban or @mikedep333 also review since I am unfamiliar with ansible-pulp.

@fao89
Copy link
Member Author

fao89 commented Mar 3, 2020

This looks good to me. I left some comments. Probably should have @dkliban or @mikedep333 also review since I am unfamiliar with ansible-pulp.

about the installation, I thought it would not be good to always install it because sometimes it won't be used

@daviddavis
Copy link
Contributor

about the installation, I thought it would not be good to always install it because sometimes it won't be used

How much overhead does it add? I'm guessing it should be minimal.

@daviddavis
Copy link
Contributor

To be clear, I wouldn't install/run the minio container. But other stuff like mc and django-storages, I think we could add to the devel role installation.

workon pulp
echo "Declaring S3 environment variables..."
sudo bash -c "echo AWS_ACCESS_KEY_ID = \'AKIAIT2Z5TDYPX3ARJBA\' >> /etc/pulp/settings.py"
sudo bash -c "echo AWS_SECRET_ACCESS_KEY = \'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\' >> /etc/pulp/settings.py"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance you can reuse the variables you declare above ($MINIO_ACCESS_KEY and $MINIO_SECRET_KEY) here?

@fao89
Copy link
Member Author

fao89 commented Mar 3, 2020

about the installation, I thought it would not be good to always install it because sometimes it won't be used

How much overhead does it add? I'm guessing it should be minimal.

you are right
docker image is about 20mb:
https://hub.docker.com/r/minio/minio/tags
mc is about 16mb
https://dl.min.io/client/mc/release/linux-amd64/

url: https://dl.min.io/client/mc/release/linux-amd64/mc
dest: /usr/local/bin
owner: '{{ developer_user }}'
mode: 0750
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very clean!

@daviddavis
Copy link
Contributor

LGTM. Will let @dkliban or @mikedep333 review and merge.

Copy link
Member

@mikedep333 mikedep333 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! 🐱

@fao89 fao89 merged commit b87b5c1 into pulp:master Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants