Add support for opensuse in configure-mirrors

Change-Id: Ic73b502277314555513e548aafb9231550fa1401
This commit is contained in:
David Moreau-Simard 2017-09-06 22:46:39 -04:00 committed by David Moreau Simard
parent a3fd046cc8
commit 97e764be26
6 changed files with 46 additions and 0 deletions

View File

@ -17,3 +17,10 @@
with_items:
- yum clean all
- yum makecache
- name: Update zypper cache
become: yes
command: "{{ item }}"
with_items:
- zypper clean
- zypper refresh

View File

@ -0,0 +1,13 @@
- name: Install Suse repository files
become: yes
template:
dest: "/{{ item }}"
group: root
mode: 0644
owner: root
src: "{{ item }}.j2"
with_items:
- etc/zypp/repos.d/repo-oss.repo
- etc/zypp/repos.d/repo-update.repo
notify:
- Update zypper cache

View File

@ -0,0 +1,8 @@
# {{ ansible_managed }}
[repo-oss]
name=repo-oss
enabled=1
autorefresh=0
baseurl={{ package_mirror }}/distribution/leap/$releasever/repo/oss/
type=yast2
keeppackages=0

View File

@ -0,0 +1,8 @@
# {{ ansible_managed }}
[repo-update]
name=repo-update
enabled=1
autorefresh=0
baseurl={{ package_mirror }}/update/leap/$releasever/oss/
type=rpm-md
keeppackages=0

View File

@ -0,0 +1 @@
package_mirror: "http://{{ mirror_fqdn }}/opensuse"

View File

@ -181,6 +181,13 @@
- name: fedora-26
label: fedora-26
- job:
name: base-integration-opensuse423
parent: base-integration
nodes:
- name: opensuse-423
label: opensuse-423
- job:
name: base-integration-ubuntu-trusty
parent: base-integration
@ -204,6 +211,7 @@
- base-integration-fedora-26
- base-integration-ubuntu-trusty
- base-integration-ubuntu-xenial
- base-integration-opensuse423
gate:
jobs:
- base-integration-centos-7
@ -211,3 +219,4 @@
- base-integration-fedora-26
- base-integration-ubuntu-trusty
- base-integration-ubuntu-xenial
- base-integration-opensuse423