-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: prefer systemd sockets over socat
- Document preferred method for socket use depending on use case; - Fix Github web-flow key; - Standardize naming of services; - Use sys-ssh in ansible formula; - Start services conditionally with Qubes Service and evaluated by systemd ConditionPathExists= instead of installing on a per qube basis with rc.local scripts; - Change Qusal services to "qusal-" prefix instead of "qubes-" prefix. Fixes: #80 Fixes: #79
- Loading branch information
1 parent
3880a35
commit 9c28068
Showing
106 changed files
with
603 additions
and
564 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,12 +69,10 @@ stages: | |
gpg-client: gpg | ||
|
||
sign-key: | ||
rpm: | ||
- DF3834875B65758713D92E91A475969DE4E371E3 | ||
rpm: DF3834875B65758713D92E91A475969DE4E371E3 | ||
|
||
#repository-publish: | ||
# components: current-testing | ||
repository-publish: | ||
components: current-testing | ||
|
||
#repository-upload-remote-host: | ||
# rpm: [email protected]:/some/path | ||
# deb: [email protected]:/another/path | ||
# repository-upload-remote-host: | ||
# rpm: [email protected]:/some/path |
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 |
---|---|---|
|
@@ -30,7 +30,9 @@ BuildArch: noarch | |
|
||
Requires: qubes-mgmt-salt | ||
Requires: qubes-mgmt-salt-dom0 | ||
Requires: qusal-dotfiles | ||
Requires: qusal-ssh | ||
Requires: qusal-sys-ssh | ||
Requires: qusal-utils | ||
|
||
|
||
|
@@ -73,8 +75,6 @@ if test "$1" = "1"; then | |
## Install | ||
qubesctl state.apply ansible.create | ||
qubesctl --skip-dom0 --targets=tpl-ansible state.apply ansible.install | ||
qubesctl --skip-dom0 --targets=ansible state.apply ansible.configure,zsh.touch-zshrc | ||
qubesctl --skip-dom0 --targets=ansible-minion state.apply ansible.configure-minion,zsh.touch-zshrc | ||
elif test "$1" = "2"; then | ||
## Upgrade | ||
true | ||
|
@@ -107,6 +107,9 @@ fi | |
%dnl TODO: missing '%ghost', files generated during %post, such as Qrexec policies. | ||
|
||
%changelog | ||
* Tue Jun 25 2024 Ben Grande <[email protected]> - 3880a35 | ||
- fix: ansible references legacy zsh state | ||
|
||
* Mon Jun 24 2024 Ben Grande <[email protected]> - ab1438f | ||
- fix: change Launchpad repository to HTTPS domain | ||
|
||
|
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 |
---|---|---|
|
@@ -114,6 +114,9 @@ fi | |
%dnl TODO: missing '%ghost', files generated during %post, such as Qrexec policies. | ||
|
||
%changelog | ||
* Tue Jun 25 2024 Ben Grande <[email protected]> - 4facf45 | ||
- feat: use native TCP socket with Qrexec | ||
|
||
* Fri Jun 21 2024 Ben Grande <[email protected]> - c84dfea | ||
- fix: generate RPM Specs for Qubes Builder V2 | ||
|
||
|
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 |
---|---|---|
|
@@ -111,6 +111,9 @@ fi | |
%dnl TODO: missing '%ghost', files generated during %post, such as Qrexec policies. | ||
|
||
%changelog | ||
* Tue Jun 25 2024 Ben Grande <[email protected]> - 4facf45 | ||
- feat: use native TCP socket with Qrexec | ||
|
||
* Fri Jun 21 2024 Ben Grande <[email protected]> - c84dfea | ||
- fix: generate RPM Specs for Qubes Builder V2 | ||
|
||
|
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 |
---|---|---|
|
@@ -114,6 +114,9 @@ fi | |
%dnl TODO: missing '%ghost', files generated during %post, such as Qrexec policies. | ||
|
||
%changelog | ||
* Tue Jun 25 2024 Ben Grande <[email protected]> - 4facf45 | ||
- feat: use native TCP socket with Qrexec | ||
|
||
* Fri Jun 21 2024 Ben Grande <[email protected]> - c84dfea | ||
- fix: generate RPM Specs for Qubes Builder V2 | ||
|
||
|
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 |
---|---|---|
|
@@ -30,7 +30,6 @@ BuildArch: noarch | |
|
||
Requires: qubes-mgmt-salt | ||
Requires: qubes-mgmt-salt-dom0 | ||
Requires: qusal-dev | ||
Requires: qusal-sys-ssh-agent | ||
Requires: qusal-utils | ||
|
||
|
@@ -83,7 +82,6 @@ if test "$1" = "1"; then | |
## Install | ||
qubesctl state.apply sys-ssh.create | ||
qubesctl --skip-dom0 --targets=tpl-sys-ssh state.apply sys-ssh.install | ||
qubesctl --skip-dom0 --targets=sys-ssh state.apply sys-ssh.configure | ||
elif test "$1" = "2"; then | ||
## Upgrade | ||
true | ||
|
@@ -116,6 +114,9 @@ fi | |
%dnl TODO: missing '%ghost', files generated during %post, such as Qrexec policies. | ||
|
||
%changelog | ||
* Tue Jun 25 2024 Ben Grande <[email protected]> - 4facf45 | ||
- feat: use native TCP socket with Qrexec | ||
|
||
* Mon Jun 24 2024 Ben Grande <[email protected]> - 22e2a2e | ||
- chore: add copyright to systemd services | ||
|
||
|
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 |
---|---|---|
|
@@ -96,7 +96,6 @@ if test "$1" = "0"; then | |
## Uninstall | ||
qvm-port-forward -a del -q sys-syncthing -n tcp -p 22000 | ||
qvm-port-forward -a del -q sys-syncthing -n udp -p 22000 | ||
qubesctl --skip-dom0 --targets=sys-syncthing state.apply sys-syncthing.cancel | ||
qubesctl state.apply sys-syncthing.clean | ||
elif test "$1" = "1"; then | ||
## Upgrade | ||
|
@@ -121,6 +120,9 @@ fi | |
%dnl TODO: missing '%ghost', files generated during %post, such as Qrexec policies. | ||
|
||
%changelog | ||
* Tue Jun 25 2024 Ben Grande <[email protected]> - 4facf45 | ||
- feat: use native TCP socket with Qrexec | ||
|
||
* Mon Jun 24 2024 Ben Grande <[email protected]> - 22e2a2e | ||
- chore: add copyright to systemd services | ||
|
||
|
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 |
---|---|---|
|
@@ -26,28 +26,13 @@ sudo qubesctl top.disable ansible | |
```sh | ||
sudo qubesctl state.apply ansible.create | ||
sudo qubesctl --skip-dom0 --targets=tpl-ansible state.apply ansible.install | ||
sudo qubesctl --skip-dom0 --targets=ansible state.apply ansible.configure | ||
sudo qubesctl --skip-dom0 --targets=ansible-minion state.apply ansible.configure-minion | ||
``` | ||
<!-- pkg:end:post-install --> | ||
|
||
## Usage | ||
|
||
Configure the control node `ansible`: | ||
```sh | ||
ssh-keygen -t ed25519 -N "" -f ~/.ssh/id_ansible | ||
qvm-copy ~/.ssh/id_ansible.pub | ||
``` | ||
Select `ansible-minion` as the target qube for the copy operation. | ||
|
||
Configure the minion `ansible-minion`: | ||
```sh | ||
mkdir -m 0700 ~/.ssh | ||
cat ~/QubesIncoming/ansible/id_ansible.pub >> ~/.ssh/authorized_keys | ||
``` | ||
|
||
From the control node `ansible`, test connection to the minion | ||
From the control node `ansible`, test connection to the managed node | ||
`ansible-minion`: | ||
```sh | ||
ssh minion | ||
ssh -p 1840 [email protected] | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.