]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
ci: add distrotest:debian10 obs-knot-resolver-es11k1/deployments/102
authorTomas Krizek <tomas.krizek@nic.cz>
Thu, 18 Jul 2019 13:48:58 +0000 (15:48 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Thu, 18 Jul 2019 15:01:43 +0000 (17:01 +0200)
.gitlab-ci.yml
distro/tests/ansible-roles/obs_repos/tasks/Debian.yaml
distro/tests/ansible-roles/obs_repos/tasks/main.yaml
distro/tests/ansible-roles/obs_repos/vars/Debian_10.yaml [new file with mode: 0644]
distro/tests/ansible-roles/obs_repos/vars/Debian_9.yaml [moved from distro/tests/ansible-roles/obs_repos/vars/Debian.yaml with 100% similarity]
distro/tests/debian10/Vagrantfile [new file with mode: 0644]
distro/tests/debian10/ansible.cfg [new symlink]

index 8e59e52204ff89ab256ce181f11cc5a61ef4a85e..943a16c503ae8c3b2d49061efb1736bf034b8cfe 100644 (file)
@@ -560,6 +560,12 @@ obs:debian9:x86_64:
     DISTROTEST_NAME: debian9
     DISTROTEST_REPO: Debian_9.0
 
+obs:debian10:x86_64:
+  <<: *distrotest
+  variables:
+    DISTROTEST_NAME: debian10
+    DISTROTEST_REPO: Debian_10
+
 obs:fedora29:x86_64:
   <<: *distrotest
   variables:
index e7f4a0d1c7765328c23ce47d93c5d549474af168..88782b767ce3c0fd8d198894d26b84a99811390c 100644 (file)
@@ -1,8 +1,8 @@
 ---
 - name: Add upstream package signing key
-  apt_key:
+  get_url:
     url: https://gitlab.labs.nic.cz/knot/knot-resolver-release/raw/master/cznic-obs.gpg.asc
-    state: present
+    dest: /etc/apt/trusted.gpg.d/cznic-obs.gpg.asc
 
 - name: Add OBS repo(s)
   apt_repository:
index f7fb7cd06c310f64fb322c05fc399f8388451040..4f17e874d1d040b4332cf445874c30cc07227005 100644 (file)
@@ -1,6 +1,11 @@
 ---
+- name: Include Debian specific vars
+  include_vars: "{{ obs_distro }}_{{ ansible_distribution_major_version }}.yaml"
+  when: obs_distro == "Debian"
+
 - name: Include distribution specific vars
   include_vars: "{{ obs_distro }}.yaml"
+  when: obs_distro != "Debian"
 
 - name: Configure upstream reporitories
   include: "{{ obs_distro }}.yaml"
diff --git a/distro/tests/ansible-roles/obs_repos/vars/Debian_10.yaml b/distro/tests/ansible-roles/obs_repos/vars/Debian_10.yaml
new file mode 100644 (file)
index 0000000..bbe23e4
--- /dev/null
@@ -0,0 +1,2 @@
+---
+obs_repo_version: "{{ obs_distro }}_{{ ansible_distribution_major_version }}"
diff --git a/distro/tests/debian10/Vagrantfile b/distro/tests/debian10/Vagrantfile
new file mode 100644 (file)
index 0000000..7d52e47
--- /dev/null
@@ -0,0 +1,27 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+#
+
+Vagrant.configure(2) do |config|
+
+    # debian/buster64 requires manual intervention for apt update as of 2019-07-18
+    config.vm.box = "generic/debian10"
+    config.vm.synced_folder ".", "/vagrant", disabled: true
+
+    config.vm.define "debian10_knot-resolver"  do |machine|
+        machine.vm.provision "ansible" do |ansible|
+            ansible.playbook = "../knot-resolver-pkgtest.yaml"
+        end
+    end
+
+    config.vm.provider :libvirt do |libvirt|
+      libvirt.cpus = 1
+      libvirt.memory = 1024
+    end
+
+    config.vm.provider :virtualbox do |vbox|
+      vbox.cpus = 1
+      vbox.memory = 1024
+    end
+
+end
diff --git a/distro/tests/debian10/ansible.cfg b/distro/tests/debian10/ansible.cfg
new file mode 120000 (symlink)
index 0000000..f80698e
--- /dev/null
@@ -0,0 +1 @@
+../.ansible.cfg
\ No newline at end of file