From 122c529e20b4a7f4895a5840fa004e63b1ba02be Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Wed, 10 Apr 2019 21:58:47 -0400 Subject: [PATCH] Add Debian support Change-Id: I432f225d397773d029b6c80b3293ba3da119b45f --- meta/main.yaml | 3 +++ tasks/setup-repo/debian.yaml | 16 ++++++++++++++++ vars/debian.yaml | 1 + zuul.d/jobs.yaml | 5 +++++ zuul.d/nodesets.yaml | 8 ++++++++ zuul.d/project.yaml | 2 ++ 6 files changed, 35 insertions(+) create mode 100644 tasks/setup-repo/debian.yaml create mode 120000 vars/debian.yaml diff --git a/meta/main.yaml b/meta/main.yaml index 9c68199..756f69d 100644 --- a/meta/main.yaml +++ b/meta/main.yaml @@ -8,6 +8,9 @@ galaxy_info: company: VEXXHOST, Inc. platforms: + - name: Debian + versions: + - stretch - name: Ubuntu versions: - bionic diff --git a/tasks/setup-repo/debian.yaml b/tasks/setup-repo/debian.yaml new file mode 100644 index 0000000..eb1a287 --- /dev/null +++ b/tasks/setup-repo/debian.yaml @@ -0,0 +1,16 @@ +--- +- name: Configure repository + become: true + apt_repository: + repo: deb http://deb.debian.org/debian/ unstable main + filename: unstable-wireguard + state: present + +- name: Pin unstable repository + become: true + copy: + dest: /etc/apt/preferences.d/limit-unstable + content: > + Package: * + Pin: release a=unstable + Pin-Priority: 90 \ No newline at end of file diff --git a/vars/debian.yaml b/vars/debian.yaml new file mode 120000 index 0000000..37d9e60 --- /dev/null +++ b/vars/debian.yaml @@ -0,0 +1 @@ +ubuntu.yaml \ No newline at end of file diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index 3cf07f2..3fb2bf5 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -24,6 +24,11 @@ parent: ansible-role-wireguard-integration nodeset: centos-7-2-node +- job: + name: ansible-role-wireguard-integration-debian-stretch + parent: ansible-role-wireguard-integration + nodeset: debian-stretch-2-node + - job: name: ansible-role-wireguard-integration-ubuntu-bionic parent: ansible-role-wireguard-integration diff --git a/zuul.d/nodesets.yaml b/zuul.d/nodesets.yaml index 9e4d83d..f995072 100644 --- a/zuul.d/nodesets.yaml +++ b/zuul.d/nodesets.yaml @@ -20,6 +20,14 @@ - name: secondary label: centos-7 +- nodeset: + name: debian-stretch-2-node + nodes: + - name: primary + label: debian-stretch + - name: secondary + label: debian-stretch + - nodeset: name: ubuntu-bionic-2-node nodes: diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml index 89e78b9..ac22a7d 100644 --- a/zuul.d/project.yaml +++ b/zuul.d/project.yaml @@ -16,8 +16,10 @@ check: jobs: - ansible-role-wireguard-integration-centos-7 + - ansible-role-wireguard-integration-debian-stretch - ansible-role-wireguard-integration-ubuntu-bionic gate: jobs: - ansible-role-wireguard-integration-centos-7 + - ansible-role-wireguard-integration-debian-stretch - ansible-role-wireguard-integration-ubuntu-bionic