From 10a6c241d38c040825c3b6b22c7223ebe9a50041 Mon Sep 17 00:00:00 2001 From: Imran Iqbal <iqbalmy@hotmail.com> Date: Fri, 8 Oct 2021 22:17:28 +0100 Subject: [PATCH] feat(os*map.yaml): restructure across all platforms --- systemd/osfamilymap.yaml | 12 ++++++++---- systemd/osfingermap.yaml | 40 +++++++++------------------------------- systemd/osmap.yaml | 7 ------- 3 files changed, 17 insertions(+), 42 deletions(-) diff --git a/systemd/osfamilymap.yaml b/systemd/osfamilymap.yaml index c072a6f..526ddd3 100644 --- a/systemd/osfamilymap.yaml +++ b/systemd/osfamilymap.yaml @@ -11,7 +11,6 @@ Debian: pkgs_libs: - libsystemd0 pkgs_extra: - - python-systemd - python3-systemd resolved: pkg: libnss-resolve @@ -21,9 +20,8 @@ RedHat: pkgs_libs: - systemd-libs pkgs_extra: - - systemd-python + - python3-systemd resolved: - pkg: systemd-resolved resolv_target: /run/systemd/resolve/resolv.conf networkd: pkg: systemd-networkd @@ -33,7 +31,6 @@ Arch: - systemd-libs pkgs_extra: - python-systemd - - python2-systemd resolved: resolv_target: /run/systemd/resolve/stub-resolv.conf @@ -42,5 +39,12 @@ Suse: - libsystemd0 pkgs_extra: - util-linux-systemd + networkd: + pkg: systemd-network resolved: pkg: nss-resolve + +Gentoo: + pkg: sys-apps/systemd + pkgs_extra: + - dev-python/python-systemd diff --git a/systemd/osfingermap.yaml b/systemd/osfingermap.yaml index d5da821..3cff5bc 100644 --- a/systemd/osfingermap.yaml +++ b/systemd/osfingermap.yaml @@ -7,39 +7,17 @@ # Only add an `osfinger` which is/will be supported by the formula # (empty `osfinger`s do not need to be listed, just added here as an example). --- -Debian-11: +# os_family/os: RedHat/CentOS +CentOS Linux-7: pkgs_extra: - - python3-systemd - # TODO: Return back to this and check if the following two lines can be removed, - # in order to use the setting in `defaults.yaml` instead (i.e. `true`). - # Using it for this initial phase of introducing pre-release Bullseye CI - # testing; the `systemd-networkd-wait-online` service doesn't start. - networkd: - wait_online: false + - systemd-python -Ubuntu-20.04: +# os_family/os: RedHat/Amazon +Amazon Linux-2: pkgs_extra: - - python3-systemd -Ubuntu-18.04: {} + - systemd-python -CentOS Stream-8: - pkgs_lib: - - systemd-libs +# os_family/os: RedHat/OEL +Oracle Linux Server-7: pkgs_extra: - - python3-systemd - resolved: - pkg: {} -CentOS Linux-8: - pkgs_lib: - - systemd-libs - pkgs_extra: - - python3-systemd - resolved: - pkg: {} - -Fedora-33: - networkd: - pkg: systemd-networkd -Fedora-34: - networkd: - pkg: systemd-networkd + - systemd-python diff --git a/systemd/osmap.yaml b/systemd/osmap.yaml index 3269553..84a906b 100644 --- a/systemd/osmap.yaml +++ b/systemd/osmap.yaml @@ -9,12 +9,5 @@ --- # os_family: RedHat Fedora: - pkgs_libs: - - systemd-libs - pkgs_extra: - - python3-systemd networkd: networkctl_reload: true - pkg: {} - resolved: - pkg: {} -- GitLab