SUSE: Add OBS:devel:libraries:c_c++ repository

The liberasurecode package does not exist for openSUSE Leap < 42.3
so we need to grab it from the OBS devel repository directly.

Change-Id: If51849507f749ad70864c9f027bae9fa3f3f88be
This commit is contained in:
Markos Chandras 2017-05-18 12:40:44 +01:00
parent 76ca77d16b
commit c4bb89f3be
2 changed files with 14 additions and 3 deletions

View File

@ -24,12 +24,14 @@
tags: tags:
- repo_server-install - repo_server-install
- name: Enable OBS:Servers:Proxy repository for apt-cacher-ng (SUSE) - name: Enable zypper repositories (SUSE)
zypper_repository: zypper_repository:
refresh: yes refresh: yes
name: "OBS:Server:Proxy" name: "{{ item.name }}"
repo: http://download.opensuse.org/repositories/server:/proxy/openSUSE_Leap_{{ ansible_distribution_version }} repo: "{{ item.repo }}"
register: zypper_repository_added register: zypper_repository_added
with_items:
- "{{ zypper_repositories }}"
when: when:
- ansible_pkg_mgr == 'zypper' - ansible_pkg_mgr == 'zypper'
tags: tags:

View File

@ -14,6 +14,15 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
zypper_repositories:
# NOTE(hwoarang): apt-cacher-ng and liberasurecode do not exist for
# Leap < 42.3 so we need to grab them directly from the devel repo.
# Remove this when support for Leap < 42.3 is gone
- name: "OBS:Server:Proxy"
repo: http://download.opensuse.org/repositories/server:/proxy/openSUSE_Leap_{{ ansible_distribution_version }}
- name: "OBS:devel:libraries:c_c++"
repo: http://download.opensuse.org/repositories/devel:/libraries:/c_c++/openSUSE_Leap_{{ ansible_distribution_version }}/
systemd_utils_prefix: "/usr/lib/systemd" systemd_utils_prefix: "/usr/lib/systemd"
repo_nginx_pid: /var/run/nginx.pid repo_nginx_pid: /var/run/nginx.pid