diff --git a/roles/configure-mirrors/tasks/mirror/Debian.yaml b/roles/configure-mirrors/tasks/mirror/Debian.yaml new file mode 100644 index 000000000..2ae9ad0b0 --- /dev/null +++ b/roles/configure-mirrors/tasks/mirror/Debian.yaml @@ -0,0 +1,15 @@ +- name: Install Debian repository files + become: yes + template: + dest: "/{{ item }}" + group: root + mode: 0644 + owner: root + src: "{{ item }}.j2" + with_items: + - etc/apt/default.list + - etc/apt/updates.list + - etc/apt/backports.list + - etc/apt/apt.conf.d/99unauthenticated + notify: + - Update apt cache diff --git a/roles/configure-mirrors/templates/etc/apt/backports.list.j2 b/roles/configure-mirrors/templates/etc/apt/backports.list.j2 new file mode 100644 index 000000000..82a9787f1 --- /dev/null +++ b/roles/configure-mirrors/templates/etc/apt/backports.list.j2 @@ -0,0 +1,3 @@ +# {{ ansible_managed }} +deb {{ package_mirror }} {{ ansible_distribution_release }}-backports main +deb-src {{ package_mirror }} {{ ansible_distribution_release }}-backports main diff --git a/roles/configure-mirrors/templates/etc/apt/default.list.j2 b/roles/configure-mirrors/templates/etc/apt/default.list.j2 new file mode 100644 index 000000000..ca3240d38 --- /dev/null +++ b/roles/configure-mirrors/templates/etc/apt/default.list.j2 @@ -0,0 +1,3 @@ +# {{ ansible_managed }} +deb {{ package_mirror }} {{ ansible_distribution_release }} main +deb-src {{ package_mirror }} {{ ansible_distribution_release }} main diff --git a/roles/configure-mirrors/templates/etc/apt/security.list.j2 b/roles/configure-mirrors/templates/etc/apt/security.list.j2 new file mode 100644 index 000000000..d431e0eb7 --- /dev/null +++ b/roles/configure-mirrors/templates/etc/apt/security.list.j2 @@ -0,0 +1,3 @@ +# {{ ansible_managed }} +deb {{ package_mirror }} {{ ansible_distribution_release }}-security main +deb-src {{ package_mirror }} {{ ansible_distribution_release }}-security main diff --git a/roles/configure-mirrors/templates/etc/apt/updates.list.j2 b/roles/configure-mirrors/templates/etc/apt/updates.list.j2 new file mode 100644 index 000000000..155b23024 --- /dev/null +++ b/roles/configure-mirrors/templates/etc/apt/updates.list.j2 @@ -0,0 +1,3 @@ +# {{ ansible_managed }} +deb {{ package_mirror }} {{ ansible_distribution_release }}-updates main +deb-src {{ package_mirror }} {{ ansible_distribution_release }}-updates main diff --git a/roles/configure-mirrors/vars/Debian.yaml b/roles/configure-mirrors/vars/Debian.yaml new file mode 100644 index 000000000..dece722ee --- /dev/null +++ b/roles/configure-mirrors/vars/Debian.yaml @@ -0,0 +1 @@ +package_mirror: "http://{{ mirror_fqdn }}/{{ ansible_distribution | lower }}" diff --git a/zuul.yaml b/zuul.yaml index 45b17ce6e..8af26797e 100644 --- a/zuul.yaml +++ b/zuul.yaml @@ -167,6 +167,13 @@ - name: centos-7 label: centos-7 +- job: + name: base-integration-debian-jessie + parent: base-integration + nodes: + - name: debian-jessie + label: debian-jessie + - job: name: base-integration-ubuntu-trusty parent: base-integration @@ -186,10 +193,12 @@ check: jobs: - base-integration-centos-7 + - base-integration-debian-jessie - base-integration-ubuntu-trusty - base-integration-ubuntu-xenial gate: jobs: - base-integration-centos-7 + - base-integration-debian-jessie - base-integration-ubuntu-trusty - base-integration-ubuntu-xenial