-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: install salt depends in fedora-39-minimal
Fixes: #38
- Loading branch information
1 parent
81bf77c
commit cf88ad1
Showing
12 changed files
with
171 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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 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 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,16 @@ | ||
#!/bin/sh | ||
|
||
## SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <[email protected]> | ||
## | ||
## SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
## TODO: Remove when template with patch reaches upstream or updates enforce | ||
## salt-deps to be installed. | ||
## https://github.com/QubesOS/qubes-issues/issues/8806 | ||
|
||
set -eu | ||
|
||
qube="${1}" | ||
qvm-run --user=root --pass-io --filter-escape-chars --no-color-output \ | ||
--no-color-stderr "${qube}" -- \ | ||
"dnf --quiet install --refresh --assumeyes --setopt=install_weak_deps=False python3-urllib3" |
This file contains 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,29 @@ | ||
{# | ||
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <[email protected]> | ||
|
||
SPDX-License-Identifier: AGPL-3.0-or-later | ||
#} | ||
|
||
{%- import slsdotpath ~ "/template.jinja" as template -%} | ||
include: | ||
- .create | ||
"{{ slsdotpath }}-set-management_dispvm-to-default": | ||
qvm.vm: | ||
- require: | ||
- cmd: "{{ slsdotpath }}-install-salt-deps" | ||
- name: {{ template.template }} | ||
- prefs: | ||
- management_dispvm: "*default*" | ||
## TODO: Remove when template with patch reaches upstream or updates enforce | ||
## salt-deps to be installed. | ||
## https://github.com/QubesOS/qubes-issues/issues/8806 | ||
"{{ slsdotpath }}-shutdown-template": | ||
qvm.shutdown: | ||
- require: | ||
- qvm: "{{ slsdotpath }}-set-management_dispvm-to-default" | ||
- name: {{ template.template }} | ||
- flags: | ||
- force |
This file contains 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,10 @@ | ||
{# | ||
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <[email protected]> | ||
|
||
SPDX-License-Identifier: AGPL-3.0-or-later | ||
#} | ||
|
||
base: | ||
'dom0': | ||
- match: nodegroup | ||
- fedora-minimal.prefs |
This file contains 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 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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
{# | ||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <[email protected]> | ||
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <[email protected]> | ||
|
||
SPDX-License-Identifier: AGPL-3.0-or-later | ||
#} | ||
|
||
base: | ||
'tpl-mgmt': | ||
- match: glob | ||
- mgmt.install |
This file contains 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 |
---|---|---|
@@ -1,21 +1,33 @@ | ||
{# | ||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <[email protected]> | ||
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <[email protected]> | ||
|
||
SPDX-License-Identifier: AGPL-3.0-or-later | ||
#} | ||
|
||
"{{ slsdotpath }}-set-management_dispvm": | ||
cmd.run: | ||
- name: qubes-prefs management_dispvm dvm-{{ slsdotpath }} | ||
include: | ||
- .create | ||
|
||
"{{ slsdotpath }}-set-management_dispvm-to-default": | ||
qvm.vm: | ||
- require: | ||
- cmd: "{{ slsdotpath }}-install-salt-deps" | ||
- name: tpl-{{ slsdotpath }} | ||
- prefs: | ||
- management_dispvm: "*default*" | ||
|
||
"{{ slsdotpath }}-remove-default-mgmt-dvm": | ||
qvm.absent: | ||
- name: default-mgmt-dvm | ||
- require: | ||
- cmd: {{ slsdotpath }}-set-management_dispvm | ||
- qvm: {{ slsdotpath }}-set-management_dispvm-to-default | ||
- name: default-mgmt-dvm | ||
|
||
## TODO: Remove when template with patch reaches upstream. | ||
## TODO: Remove when template with patch reaches upstream or updates enforce | ||
## salt-deps to be installed. | ||
## https://github.com/QubesOS/qubes-issues/issues/8806 | ||
"{{ slsdotpath }}-shutdown-template": | ||
qvm.shutdown: | ||
- require: | ||
- qvm: "{{ slsdotpath }}-set-management_dispvm-to-default" | ||
- name: tpl-{{ slsdotpath }} | ||
- flags: | ||
- force |
This file contains 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 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 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,27 @@ | ||
{# | ||
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <[email protected]> | ||
|
||
SPDX-License-Identifier: AGPL-3.0-or-later | ||
#} | ||
|
||
include: | ||
- .create | ||
|
||
"{{ slsdotpath }}-set-management_dispvm-to-default": | ||
qvm.vm: | ||
- require: | ||
- cmd: "{{ slsdotpath }}-install-salt-deps" | ||
- name: tpl-{{ slsdotpath }} | ||
- prefs: | ||
- management_dispvm: "*default*" | ||
|
||
## TODO: Remove when template with patch reaches upstream or updates enforce | ||
## salt-deps to be installed. | ||
## https://github.com/QubesOS/qubes-issues/issues/8806 | ||
"{{ slsdotpath }}-shutdown-template": | ||
qvm.shutdown: | ||
- require: | ||
- qvm: "{{ slsdotpath }}-set-management_dispvm-to-default" | ||
- name: tpl-{{ slsdotpath }} | ||
- flags: | ||
- force |
This file contains 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,10 @@ | ||
{# | ||
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <[email protected]> | ||
|
||
SPDX-License-Identifier: AGPL-3.0-or-later | ||
#} | ||
|
||
base: | ||
'dom0': | ||
- match: nodegroup | ||
- qubes-builder.prefs |