-
Notifications
You must be signed in to change notification settings - Fork 1.3k
test(tmachine): add Debian installer profile #3461
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
Open
SDAChess
wants to merge
4
commits into
main
Choose a base branch
from
feat/add-debian-installer-profile
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
7f2b191
test(tmachine): add Debian installer profile
SDAChess c668150
refactor(ci): centralize conformance matrix
SDAChess 0b1fb7d
test(ci): prefer packaged conformance artifacts
SDAChess b37aab1
test(tmachine): use packaged Debian gateway service
SDAChess File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| --- | ||
| - name: Install OpenShell Debian package | ||
| hosts: all | ||
| gather_facts: false | ||
| tasks: | ||
| - name: Wait for SSH | ||
| ansible.builtin.wait_for_connection: | ||
|
|
||
| - name: Copy OpenShell Debian package | ||
| become: true | ||
| ansible.builtin.copy: | ||
| src: "{{ openshell_deb }}" | ||
| dest: /var/tmp/openshell.deb | ||
| mode: "0644" | ||
|
|
||
| - name: Install OpenShell Debian package | ||
| become: true | ||
| ansible.builtin.apt: | ||
| deb: /var/tmp/openshell.deb | ||
|
|
||
| - name: Copy OpenShell runtime images | ||
| become: true | ||
| ansible.builtin.copy: | ||
| src: "{{ item.src }}" | ||
| dest: "/var/tmp/{{ item.name }}.tar" | ||
| mode: "0644" | ||
| loop: | ||
| - name: openshell-sandbox | ||
| src: "{{ openshell_sandbox_image }}" | ||
| - name: openshell-supervisor | ||
| src: "{{ openshell_supervisor_image }}" | ||
|
|
||
| - name: Load OpenShell runtime images | ||
| become: true | ||
| ansible.builtin.command: | ||
| argv: | ||
| - docker | ||
| - load | ||
| - --input | ||
| - "/var/tmp/{{ item }}.tar" | ||
| loop: | ||
| - openshell-sandbox | ||
| - openshell-supervisor | ||
|
|
||
| - name: Create OpenShell configuration directory | ||
| ansible.builtin.file: | ||
| path: /home/tmachine/.config/openshell | ||
| state: directory | ||
| mode: "0700" | ||
|
|
||
| - name: Configure candidate OpenShell runtime images | ||
| ansible.builtin.copy: | ||
| dest: /home/tmachine/.config/openshell/gateway.toml | ||
| mode: "0600" | ||
| content: | | ||
| [openshell] | ||
| version = 2 | ||
|
|
||
| [openshell.drivers.docker] | ||
| sandbox_runtime_image = "docker.io/openshell/sandbox:tmachine" | ||
| supervisor_image = "docker.io/openshell/supervisor:tmachine" | ||
|
Comment on lines
+36
to
+64
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is docker specific but since we dont have Ubuntu/Debian + Podman I think it's fine to have leave this as-is. |
||
|
|
||
| - name: Start tmachine user manager | ||
| ansible.builtin.include_role: | ||
| name: tmachine_user_manager | ||
|
|
||
| - name: Start packaged OpenShell gateway service | ||
| ansible.builtin.systemd_service: | ||
| name: openshell-gateway.service | ||
| scope: user | ||
| daemon_reload: true | ||
| enabled: true | ||
| state: started | ||
| environment: | ||
| XDG_RUNTIME_DIR: /run/user/1000 | ||
| DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/1000/bus | ||
|
|
||
| - name: Wait for OpenShell gateway | ||
| ansible.builtin.wait_for: | ||
| host: 127.0.0.1 | ||
| port: 17670 | ||
| timeout: 60 | ||
|
|
||
| - name: Register packaged OpenShell gateway | ||
| ansible.builtin.include_role: | ||
| name: openshell_client | ||
| vars: | ||
| openshell_client_gateway_endpoint: https://127.0.0.1:17670 | ||
| openshell_client_gateway_name: openshell | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| --- | ||
| - name: Enable lingering for tmachine | ||
| become: true | ||
| ansible.builtin.command: | ||
| argv: | ||
| - loginctl | ||
| - enable-linger | ||
| - tmachine | ||
| changed_when: false | ||
|
|
||
| - name: Start tmachine user manager | ||
| become: true | ||
| ansible.builtin.systemd_service: | ||
| name: user@1000.service | ||
| state: started |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.