Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
include:
- project: 'QubesOS/qubes-continuous-integration'
file: '/r4.1/gitlab-base.yml'
- project: 'QubesOS/qubes-continuous-integration'
file: '/r4.1/gitlab-dom0.yml'
- project: 'QubesOS/qubes-continuous-integration'
file: '/r4.1/gitlab-vm.yml'
- project: 'QubesOS/qubes-continuous-integration'
file: '/r4.2/gitlab-base.yml'
- project: 'QubesOS/qubes-continuous-integration'
file: '/r4.2/gitlab-host.yml'
- project: 'QubesOS/qubes-continuous-integration'
file: '/r4.2/gitlab-vm.yml'
- project: 'QubesOS/qubes-continuous-integration'
file: '/r4.3/gitlab-base.yml'
- project: 'QubesOS/qubes-continuous-integration'
file: '/r4.3/gitlab-host.yml'
- project: 'QubesOS/qubes-continuous-integration'
file: '/r4.3/gitlab-vm.yml'

variables:
TRAVIS_INSTALL_EXCLUDE: "qubes-mgmt-salt-dom0 qubes-mgmt-salt-dom0-formulas"
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ install-vm:
install ssh-wrapper $(DESTDIR)/usr/lib/qubes-vm-connector/ssh-wrapper/ssh
ln -s ssh $(DESTDIR)/usr/lib/qubes-vm-connector/ssh-wrapper/scp
ln -s /bin/true $(DESTDIR)/usr/lib/qubes-vm-connector/ssh-wrapper/ssh-keygen
install -d $(DESTDIR)/usr/lib/qubes-vm-connector/python-override
cp -r python-override/certifi \
$(DESTDIR)/usr/lib/qubes-vm-connector/python-override/
install -d $(DESTDIR)/etc/qubes-rpc
install qubes.SaltLinuxVM $(DESTDIR)/etc/qubes-rpc

Expand Down
4 changes: 4 additions & 0 deletions python-override/certifi/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from .core import contents, where

__all__ = ["contents", "where"]
__version__ = "2023.05.07"
12 changes: 12 additions & 0 deletions python-override/certifi/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import argparse

from certifi import contents, where

parser = argparse.ArgumentParser()
parser.add_argument("-c", "--contents", action="store_true")
args = parser.parse_args()

if args.contents:
print(contents())
else:
print(where())
21 changes: 21 additions & 0 deletions python-override/certifi/core.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""
certifi.py
~~~~~~~~~~

This module returns the installation location of cacert.pem or its contents.
"""

import os.path

DEBIAN_CA_CERTS_PATH = '/etc/ssl/certs/ca-certificates.crt'

# The RPM-packaged certifi always uses the system certificates
def where() -> str:
if os.path.exists(DEBIAN_CA_CERTS_PATH):
return DEBIAN_CA_CERTS_PATH
return '/etc/pki/tls/certs/ca-bundle.crt'

def contents() -> str:
with open(where(), encoding='utf=8') as data:
return data.read()

Empty file.
1 change: 1 addition & 0 deletions qubes.SaltLinuxVM
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ $target_vm:
host: $target_vm
EOF
export PATH="/usr/lib/qubes-vm-connector/ssh-wrapper:$PATH"
export PYTHONPATH="/usr/lib/qubes-vm-connector/python-override:$PYTHONPATH"

# Ensure the arguments for salt-ssh are tokenized correctly.
# Without this parsing, the salt_command is just split on whitespace.
Expand Down
1 change: 1 addition & 0 deletions rpm_spec/qubes-mgmt-salt-vm.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ make install-vm DESTDIR=%{buildroot}
%defattr(-,root,root)
/etc/qubes-rpc/qubes.SaltLinuxVM
/usr/lib/qubes-vm-connector/ssh-wrapper
/usr/lib/qubes-vm-connector/python-override

%changelog
@CHANGELOG@