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
47 changes: 47 additions & 0 deletions core/imageroot/etc/nethserver/pyreq3_13.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#
# PIP requirements file for the Agent python environment
# The environment is installed under /usr/local/nethserver/agent
#
aiodns==4.0.0
aiohttp==3.13.3
ansible-core==2.20.1
ansible-runner==2.4.2
async-timeout==5.0.1
attrs==25.4.0
brotlipy==0.7.0
certifi==2026.1.4
cffi==2.0.0
chardet==5.2.0
cryptography==46.0.3
dnspython==2.8.0
docutils==0.22.4
hiredis==3.3.0
idna==3.11
Jinja2==3.1.6
jsonschema==4.26.0
ldap3==2.9.1
lockfile==0.12.2
MarkupSafe==3.0.3
matplotlib==3.10.8
multidict==6.7.0
numpy==2.4.1
packaging==26.0
pandas-stubs==2.3.3.260113
pexpect==4.9.0
psutil==7.2.1
ptyprocess==0.7.0
pyasn1==0.6.2
pycares==5.0.1
pycparser==3.0
pyrsistent==0.20.0
python-daemon==3.1.2
PyYAML==6.0.3
redis==7.1.0
regex-engine==1.1.0
requests==2.32.5
resolvelib==1.2.1
semver==3.0.4
six==1.17.0
typing-extensions==4.15.0
urllib3==2.6.3
yarl==1.22.0
2 changes: 2 additions & 0 deletions core/imageroot/etc/systemd/user.conf.d/01-xdg-state.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Manager]
ManagerEnvironment=XDG_STATE_HOME=%h/.config
16 changes: 14 additions & 2 deletions core/imageroot/var/lib/nethserver/node/install-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,20 @@ fi

echo "Setup Python virtual environment for agents:"
core_dir=/usr/local/agent/pyenv
python3.11 -mvenv ${core_dir} --upgrade-deps --system-site-packages
${core_dir}/bin/pip3 install -r /etc/nethserver/pyreq3_11.txt

# detect what version of python3 is available
if [[ -x /usr/bin/python3.13 ]]; then
python3.13 -mvenv ${core_dir} --upgrade-deps --system-site-packages
${core_dir}/bin/pip3 install -r /etc/nethserver/pyreq3_13.txt
elif [[ -x /usr/bin/python3.11 ]]; then
python3.11 -mvenv ${core_dir} --upgrade-deps --system-site-packages
${core_dir}/bin/pip3 install -r /etc/nethserver/pyreq3_11.txt
else
echo "$(python3 --version || echo Python 3) not supported"
exit 1
fi

# ensure the agent python packages are in the default python path
echo "/usr/local/agent/pypkg" >$(${core_dir}/bin/python3 -c "import sys; print(sys.path[-1] + '/pypkg.pth')")

echo "Setup registry:"
Expand Down
2 changes: 1 addition & 1 deletion core/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if [[ "${PLATFORM_ID}" == "platform:el9" ]]; then
dnf update -y # Fix SELinux issues with basic packages
dnf install -y wireguard-tools podman curl jq openssl firewalld pciutils python3.11 fio
systemctl enable --now firewalld
elif [[ "${ID}" == "debian" && "${VERSION_ID}" == "12" ]]; then
elif [[ "${ID}" == "debian" && ( "${VERSION_ID}" == "12" || "${VERSION_ID}" == "13" ) ]]; then
apt-get update
apt-get -y install gnupg2
apt-get update
Expand Down