Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Remove boto and pip installation from default installation #123

Merged
merged 3 commits into from
Dec 18, 2018

Conversation

lawliet89
Copy link
Contributor

Fixes #116

Copy link
Collaborator

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

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

Code changes look good. How did you test them?

@lawliet89
Copy link
Contributor Author

lawliet89 commented Dec 18, 2018

modules/install-vault/install-vault was tested by building new AMIs and launching new instances successfully (with auto-unseal, if that matters).

I didn't test the example.

@brikis98
Copy link
Collaborator

We can't run automated tests automatically for external PRs for security reasons. Could you run those yourself? Or, if that's too much setup work, could you deploy the example with the new AMI and make sure the cluster comes up OK? Thank you!

@lawliet89
Copy link
Contributor Author

The AWS IAM auth script (and thus the Boto requirement) is not even used at all for starting up a Vault cluster.

Are you OK if I test using the IAM Auth example instead?

I will see if I can make some more changes to only install Boto/Pip when needed for that example.

@brikis98
Copy link
Collaborator

Sure! As long as you're putting the new AMI through its paces and it works, I'd be confident in merging this. Thanks!

@lawliet89
Copy link
Contributor Author

lawliet89 commented Dec 18, 2018

Did a couple of tests:

  1. The IAM Auth example which spins up a Vault and Consul cluster and an additional EC2 instance that authenticates via IAM worked. (i.e. I was able to curl http://<auth instance ip>:8080 and get back a secret I defined.)
  2. I set install_auth_signing_script in the Packer template to anything other than true and I can confirm that Boto and Pip were not installed and the sign-request.py script is deleted.
ubuntu@ip-10-158-3-212:~$ sudo apt list --installed | grep python-pip

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

ubuntu@ip-10-158-3-212:~$ ls /opt/vault/scripts/
ubuntu@ip-10-158-3-212:~$ ls /tmp/
systemd-private-b9c55fb6e3aa41549d63e9cbf8003c6b-systemd-timesyncd.service-hN1JET

Copy link
Contributor

@Etiene Etiene left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the PR and thanks for testing it!

@Etiene Etiene merged commit 413c8bb into hashicorp:master Dec 18, 2018
@lawliet89 lawliet89 deleted the rm-boto branch December 19, 2018 00:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants