-
Notifications
You must be signed in to change notification settings - Fork 20
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
device_connectors: Add default-user-data to oem_autoinstall #373
device_connectors: Add default-user-data to oem_autoinstall #373
Conversation
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.
@Artur-at-work Did this change also include a default authorize_keys?
@kevinyehk No, because I'd have to add the public key into the default-user-data and it will be exposed. Will this work for you? or should we consider another approach? |
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.
one comment
@@ -44,6 +44,9 @@ def __init__(self, config, job_data): | |||
self.config = yaml.safe_load(configfile) | |||
with open(job_data, encoding="utf-8") as job_json: | |||
self.job_data = json.load(job_json) | |||
self.data_path = ( | |||
Path(__file__).parent / "../../data/muxpi/oem_autoinstall" |
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.
I just realized that this has been using files under data/muxpi, shouldn't it organize them under data/oem_autoinstall instead? That seems like a better place for it, since they are not used by the muxpi device connector.
Description
Add default-user-data file in oem_autoinstall for convenience.
When user didn't provide user-data file, it will use default one.
Resolved issues
Closes https://warthogs.atlassian.net/browse/OEX86-473
Documentation
Updated docs for oem_autoinstall
Web service API changes
N/A
Tests
https://testflinger.canonical.com/jobs/940e48fb-70df-45a3-8179-4687f352e105