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

Update nginx example to work #625

Merged
merged 7 commits into from
May 14, 2021
Merged

Conversation

atombrella
Copy link
Contributor

I couldn't see CoreOS in the list under the droplets anymore. Because the droplet is created with IPv6, I'd like to encourage people to support it better with a AAAA DNS record.

Please see #622

@atombrella
Copy link
Contributor Author

@andrewsomething @scotchneat Let me know what more is needed to get this merged.

Copy link
Contributor

@scotchneat scotchneat left a comment

Choose a reason for hiding this comment

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

The change is great @atombrella!

This isn't a blocker but since the release of Terraform 0.12.14, Interpolation-only expressions are deprecated. This applies to the ${xxx} interpolation syntax within quotes but without any other text within the quotes.

Although it's still a warning, I think we could take this opportunity to address it. It can be resolved by removing the quotes. I included some suggestions inline but didn't cover all the instances. You can check if you still get the warning (as long as you're using terraform 0.12.14 or newer - I suggest >= 0.14) by running terraform plan on this example locally.

examples/droplet/main.tf Outdated Show resolved Hide resolved
examples/droplet/outputs.tf Outdated Show resolved Hide resolved
examples/droplet/main.tf Outdated Show resolved Hide resolved
@atombrella
Copy link
Contributor Author

@scotchneat Thanks :) The PR has been updated. My experience with Terraform is a bit limited, but I have used terraform plan and terraform apply before on some similar small setups in DigitalOcean.

Please adjust the commit message if needed. I couldn't really see a pattern for changes of this type.

@atombrella
Copy link
Contributor Author

@scotchneat No warnings with tflint :) I won't make anymore changes to this PR.

@scotchneat scotchneat linked an issue May 6, 2021 that may be closed by this pull request
@danaelhe danaelhe requested a review from a team May 6, 2021 19:48
Added a cloud-init file and passed it into to the user_data attribute of the droplet to avoid apt-get lock issue.
@danaelhe
Copy link
Member

danaelhe commented May 6, 2021

@scotchneat No warnings with tflint :) I won't make anymore changes to this PR.

Looks great! I added a minor change to fix a lock issue I ran into. It's the same problem #595 addresses.

@danaelhe danaelhe requested a review from scotchneat May 7, 2021 16:10
Copy link
Contributor

@scotchneat scotchneat left a comment

Choose a reason for hiding this comment

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

I'd love to merge the change as is since it covers the original purpose of the change.
However, there's one more change that would allow this example to run from a clean clone.

Currently, the ssh key is hardcoded to a specific key id. This will fail until the user updates the key. I've added some small suggestions inline that will make this dynamic and should allow users to run the example straight away.

examples/droplet/variable.tf Show resolved Hide resolved
examples/droplet/main.tf Show resolved Hide resolved
examples/droplet/main.tf Outdated Show resolved Hide resolved
@atombrella
Copy link
Contributor Author

I'd love to merge the change as is since it covers the original purpose of the change.
However, there's one more change that would allow this example to run from a clean clone.

Currently, the ssh key is hardcoded to a specific key id. This will fail until the user updates the key. I've added some small suggestions inline that will make this dynamic and should allow users to run the example straight away.

OK. I was about to ask about this as well. Thanks! :)

@danaelhe danaelhe requested review from scotchneat and a team and removed request for scotchneat May 10, 2021 14:46
Copy link
Member

@danaelhe danaelhe left a comment

Choose a reason for hiding this comment

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

lgtm! Thank you so much!

Copy link
Contributor

@scotchneat scotchneat left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks again for the contribution

@scotchneat scotchneat merged commit 10f9d45 into digitalocean:main May 14, 2021
@MattIPv4
Copy link
Member

Hey, @atombrella - Thanks a ton for this sweet PR! 😄

Would you please shoot me an email when you get a chance?
mcowley at digitalocean dot com 🎉

@atombrella atombrella deleted the nginx_example branch June 2, 2021 11:13
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.

Update the end to end Droplet example
4 participants