Add support for debian in configure-mirrors
Change-Id: Ib7230c69d31d075392d738cbf7e1685fd46480c4
This commit is contained in:
parent
8ac328ec21
commit
b2ccb986a9
15
roles/configure-mirrors/tasks/mirror/Debian.yaml
Normal file
15
roles/configure-mirrors/tasks/mirror/Debian.yaml
Normal file
@ -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
|
@ -0,0 +1,3 @@
|
||||
# {{ ansible_managed }}
|
||||
deb {{ package_mirror }} {{ ansible_distribution_release }}-backports main
|
||||
deb-src {{ package_mirror }} {{ ansible_distribution_release }}-backports main
|
@ -0,0 +1,3 @@
|
||||
# {{ ansible_managed }}
|
||||
deb {{ package_mirror }} {{ ansible_distribution_release }} main
|
||||
deb-src {{ package_mirror }} {{ ansible_distribution_release }} main
|
@ -0,0 +1,3 @@
|
||||
# {{ ansible_managed }}
|
||||
deb {{ package_mirror }} {{ ansible_distribution_release }}-security main
|
||||
deb-src {{ package_mirror }} {{ ansible_distribution_release }}-security main
|
@ -0,0 +1,3 @@
|
||||
# {{ ansible_managed }}
|
||||
deb {{ package_mirror }} {{ ansible_distribution_release }}-updates main
|
||||
deb-src {{ package_mirror }} {{ ansible_distribution_release }}-updates main
|
1
roles/configure-mirrors/vars/Debian.yaml
Normal file
1
roles/configure-mirrors/vars/Debian.yaml
Normal file
@ -0,0 +1 @@
|
||||
package_mirror: "http://{{ mirror_fqdn }}/{{ ansible_distribution | lower }}"
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user