Add support for opensuse in configure-mirrors
Change-Id: Ic73b502277314555513e548aafb9231550fa1401
This commit is contained in:
parent
a3fd046cc8
commit
97e764be26
@ -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
|
13
roles/configure-mirrors/tasks/mirror/Suse.yaml
Normal file
13
roles/configure-mirrors/tasks/mirror/Suse.yaml
Normal 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
|
@ -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
|
@ -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
|
1
roles/configure-mirrors/vars/Suse.yaml
Normal file
1
roles/configure-mirrors/vars/Suse.yaml
Normal file
@ -0,0 +1 @@
|
||||
package_mirror: "http://{{ mirror_fqdn }}/opensuse"
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user