Ubuntu 20.04 Support

This commit is contained in:
Mike Reeves
2021-09-20 17:24:47 -04:00
parent 3924b8f5db
commit 50b78681f2
6 changed files with 30 additions and 4 deletions

View File

@@ -107,10 +107,17 @@ commonpkgs:
heldpackages:
pkg.installed:
- pkgs:
{% if grains['codename'] == 'bionic' %}
- containerd.io: 1.4.4-1
- docker-ce: 5:20.10.5~3-0~ubuntu-bionic
- docker-ce-cli: 5:20.10.5~3-0~ubuntu-bionic
- docker-ce-rootless-extras: 5:20.10.5~3-0~ubuntu-bionic
{% elif grains['codename'] == 'focal' %}
- containerd.io: 1.4.9-1
- docker-ce: 5:20.10.8~3-0~ubuntu-focal
- docker-ce-cli: 5:20.10.5~3-0~ubuntu-focal
- docker-ce-rootless-extras: 5:20.10.5~3-0~ubuntu-focal
{% endif %}
- hold: True
- update_holds: True

View File

@@ -22,7 +22,11 @@ mysqlpkgs:
- skip_suggestions: False
- pkgs:
{% if grains['os'] != 'CentOS' %}
- python-mysqldb
{% if grains['codename'] == 'bionic' %}
- python3-mysqldb
{% elif grains['codename'] == 'focal' %}
- python3-mysqldb
{% endif %}
{% else %}
- MySQL-python
{% endif %}

View File

@@ -3,7 +3,11 @@ saltpymodules:
pkg.installed:
- pkgs:
- python-docker
{% if grains['codename'] == 'bionic' %}
- python-m2crypto
{% elif grains['codename'] == 'focal' %}
- python3-m2crypto
{% endif %}
{% endif %}
salt_bootstrap:

View File

@@ -3082,7 +3082,11 @@ install_ubuntu_git_deps() {
__PACKAGES="${__PACKAGES} python3-setuptools"
else
# There is no m2crypto package for Py3 at this time - only install for Py2
if [ $DISTRO_CODENAME == "focal" ]; then
__PACKAGES="${__PACKAGES} python3-m2crypto"
else
__PACKAGES="${__PACKAGES} python-m2crypto"
fi
fi
__PACKAGES="${__PACKAGES} python${PY_PKG_VER}-crypto python${PY_PKG_VER}-jinja2"

View File

@@ -42,7 +42,11 @@ m2cryptopkgs:
pkg.installed:
- skip_suggestions: False
- pkgs:
{% if grains['codename'] == 'bionic' %}
- python-m2crypto
{% elif grains['codename'] == 'focal' %}
- python3-m2crypto
{% endif %}
{% endif %}
removefbcertdir: