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

Set DNS ip and item-name automatically. #33

Open
slothbear opened this issue Nov 6, 2020 · 0 comments
Open

Set DNS ip and item-name automatically. #33

slothbear opened this issue Nov 6, 2020 · 0 comments

Comments

@slothbear
Copy link
Member

slothbear commented Nov 6, 2020

assumptions:

  • wither status already knows the IP address: droplet.public_ip
  • The item number for this week is one more than last week: (new-ish) config var BOOT_RESTORE_WEEK

snags:

  • The IP address is not assigned until the droplet starts, perhaps about 1 minute after the boot command.

IP

Since the IP isn't available immediately, just wait for it. When wither receives the phone_home at /cloud/booted/:instance_id, issue the DNS command (or equivalent).

possible sources of item yaml:



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

No branches or pull requests

1 participant