-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
353eeeb
test(tmachine): add Debian installer profile
SDAChess b15a3ec
refactor(ci): centralize conformance matrix
SDAChess 0370af6
test(ci): prefer packaged conformance artifacts
SDAChess 691ea14
test(tmachine): use packaged Debian gateway service
SDAChess d70dba9
test(tmachine): isolate Debian qualification config
elezar 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,114 @@ | ||
| # 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 | ||
|
|
||
| # The package normally starts from its built-in runtime-image defaults. | ||
| # Qualification instead pins the candidate images staged by tmachine, so | ||
| # keep that override separate from the operator-owned gateway.toml. | ||
| - name: Create OpenShell qualification configuration directory | ||
| become: true | ||
| ansible.builtin.file: | ||
| path: /var/lib/openshell-qualification | ||
| state: directory | ||
| owner: root | ||
| group: root | ||
| mode: "0755" | ||
|
|
||
| - name: Configure candidate OpenShell runtime images for qualification | ||
| become: true | ||
| ansible.builtin.copy: | ||
| dest: /var/lib/openshell-qualification/gateway.toml | ||
| owner: root | ||
| group: root | ||
| mode: "0644" | ||
| content: | | ||
| [openshell] | ||
| version = 2 | ||
|
|
||
| [openshell.drivers.docker] | ||
| sandbox_runtime_image = "docker.io/openshell/sandbox:tmachine" | ||
| supervisor_image = "docker.io/openshell/supervisor:tmachine" | ||
|
elezar marked this conversation as resolved.
|
||
|
|
||
| - name: Create OpenShell environment directory | ||
| ansible.builtin.file: | ||
| path: /home/tmachine/.config/openshell | ||
| state: directory | ||
| mode: "0700" | ||
|
|
||
| - name: Select qualification gateway configuration | ||
| ansible.builtin.copy: | ||
| dest: /home/tmachine/.config/openshell/gateway.env | ||
| mode: "0600" | ||
| content: | | ||
| OPENSHELL_GATEWAY_CONFIG=/var/lib/openshell-qualification/gateway.toml | ||
|
|
||
| - 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.