]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
distro/tests: add Rocky support obs-knot-resolver-bs4hbr/deployments/2047
authorTomas Krizek <tomas.krizek@nic.cz>
Mon, 7 Mar 2022 09:25:44 +0000 (10:25 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Mon, 7 Mar 2022 09:25:44 +0000 (10:25 +0100)
distro/tests/ansible-roles/knot_resolver/tasks/main.yaml
distro/tests/ansible-roles/knot_resolver/vars/Rocky.yaml [new file with mode: 0644]
distro/tests/ansible-roles/obs_repos/tasks/Rocky.yaml [new file with mode: 0644]
distro/tests/ansible-roles/obs_repos/vars/Rocky.yaml [new file with mode: 0644]

index a8ce8dd76f0a2f74e4203260cf7aca94b5025828..8d683c809e347ea3bc405fadc462b7f345985568 100644 (file)
             state: latest
 
         - include: configure_doh.yaml
-          when: ansible_distribution in ["CentOS", "Fedora", "Debian", "Ubuntu"]
+          when: ansible_distribution in ["CentOS", "Rocky", "Fedora", "Debian", "Ubuntu"]
 
         - include: restart_kresd.yaml
         - include: test_doh.yaml
-      when: distro in ["Fedora", "Debian", "CentOS"] or (distro == "Ubuntu" and ansible_distribution_major_version|int >= 18)
+      when: distro in ["Fedora", "Debian", "CentOS", "Rocky"] or (distro == "Ubuntu" and ansible_distribution_major_version|int >= 18)
 
     - name: Test dnstap module
       block:
@@ -56,7 +56,7 @@
             state: latest
         - include: configure_dnstap.yaml
         - include: restart_kresd.yaml
-      when: distro in ["Fedora", "Debian", "CentOS", "Ubuntu"]
+      when: distro in ["Fedora", "Debian", "CentOS", "Rocky", "Ubuntu"]
 
   always:
 
diff --git a/distro/tests/ansible-roles/knot_resolver/vars/Rocky.yaml b/distro/tests/ansible-roles/knot_resolver/vars/Rocky.yaml
new file mode 100644 (file)
index 0000000..d69cb13
--- /dev/null
@@ -0,0 +1,6 @@
+---
+# SPDX-License-Identifier: GPL-3.0-or-later
+show_package_version: rpm -qi knot-resolver | grep '^Version'
+packages:
+  - knot-resolver
+  - knot-utils
diff --git a/distro/tests/ansible-roles/obs_repos/tasks/Rocky.yaml b/distro/tests/ansible-roles/obs_repos/tasks/Rocky.yaml
new file mode 100644 (file)
index 0000000..fecfbea
--- /dev/null
@@ -0,0 +1,13 @@
+---
+# SPDX-License-Identifier: GPL-3.0-or-later
+- name: Install EPEL
+  yum:
+    name: epel-release
+    state: present
+
+- name: Download repo file(s)
+  get_url:
+    url: "{{ obs_repofile_url }}"
+    dest: /etc/yum.repos.d/home:CZ-NIC:{{ item }}.repo
+    mode: 0644
+  with_items: "{{ repos }}"
diff --git a/distro/tests/ansible-roles/obs_repos/vars/Rocky.yaml b/distro/tests/ansible-roles/obs_repos/vars/Rocky.yaml
new file mode 100644 (file)
index 0000000..b8b5274
--- /dev/null
@@ -0,0 +1,3 @@
+---
+# SPDX-License-Identifier: GPL-3.0-or-later
+obs_repo_version: "CentOS_{{ ansible_distribution_major_version }}_EPEL"