-
Notifications
You must be signed in to change notification settings - Fork 35
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
Preseed yaml #164
Preseed yaml #164
Conversation
I've just dropped a somewhat descriptive yaml under the |
06eaf90
to
35594d7
Compare
@masnax did you want a review of this now? |
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
35594d7
to
1115b36
Compare
@tomponline Yeah, that would be great thanks. |
// - If `autoSetup` is true, all systems found in the first 5s will be recorded, and no other input is required. | ||
// - `expectedSystems` is a list of expected hostnames. If given, the behaviour is similar to `autoSetup`, | ||
// except it will wait up to a minute for exclusively these systems to be recorded. | ||
func lookupPeers(s *service.Handler, autoSetup bool, subnet *net.IPNet, expectedSystems []string, systems map[string]InitSystem) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the comment, this explains it well.
This isn't a blocker, just a nit, but the coupling of different timeouts with different modes feels quite peculiar for a utility function like this.
For future reference pushing the timeout decision to the caller and just having a ctx or timeout argument here would make the function description cleaner to understand and separate the concerns of what the function should do by when.
Adds support for preseed init