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

Write a state file with the machine provisioned, its ID and auth token #28

Open
alexellis opened this issue Jan 18, 2020 · 7 comments
Open
Assignees

Comments

@alexellis
Copy link
Member

This feature will write a state file with the machine provisioned, its ID and auth token

Expected Behaviour

A file (probably YAML file) should be written to disk after provisioning a host, it will be used by the user to be able to delete or reconnect to the host at a later date, it's especially useful if the auth token, ID or IP was lost.

Current Behaviour

In this scenario, I have to delete / re-create, or ssh into the exit server after doing a password reset.

Possible Solution

Write a file such as host-name-inletsctl.yaml with:

host:
  metadata:
    created_at: A
    provider: B
    region: C
  ip: Y
  id : Z
  auth_token: A
  pro: true/false

Initially, this will not be consumable by the CLI itself, but will act like a state file or reminder for the user.

@alexellis
Copy link
Member Author

@adamjohnson01 WDYT?

@Waterdrips
Copy link
Contributor

I would love this - possibly a command to give you the inlets command for a specific host, could we name them too?

@adamjohnson01
Copy link
Contributor

@alexellis I think this is a great idea. I would be happy to take it on.

@alexellis
Copy link
Member Author

Yes sounds good, please take it Adam. Any input on how it should work or did this sound like a good first pass?

@adamjohnson01
Copy link
Contributor

adamjohnson01 commented Jan 18, 2020

I like the idea about a commend that will give you the inlets command for the specific host if users are going to have multiple inlets then I think a single file that contains a list would be the way to go with potentially an easy to remember or descriptive name? Something like this?

hosts:
  - name: generated name or alias if set by user?
    metadata:
      created_at: A
      provider: B
      region: C
    ip: Y
    id : Z
    auth_token: A
    pro: true/false

I will get the file generation working and we can go from there.

@alexellis
Copy link
Member Author

Single file implies state and management, multiple files are throwaway, don't imply that we'll keep them up to date, they're more of a snapshot.

@utsavanand2
Copy link
Contributor

Derek assign: me

utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Mar 17, 2020
The PR adds feature to create a static file with the
machine ID, auth, IP and other metadata when the `--static-file`
flag is passed
Closes inlets#28

Signed-off-by: Utsav Anand <[email protected]>
utsavanand2 added a commit to utsavanand2/inletsctl that referenced this issue Mar 17, 2020
The PR adds feature to create a static file with the
machine ID, auth, IP and other metadata when the `--static-file`
flag is passed
Closes inlets#28

Signed-off-by: Utsav Anand <[email protected]>
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 a pull request may close this issue.

4 participants