-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathlocal_openstack_repo.yaml
More file actions
30 lines (26 loc) · 1.3 KB
/
local_openstack_repo.yaml
File metadata and controls
30 lines (26 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
#
# These tasks point a given host at our local package cache
# for RHEL-OSP or RDO Packages,
# and prioritise that cache above the main Red Hat or Centos
# package repositories
#
# Requires
# config/rhel_osp.repo.j2
# config/centos_rdo.repo.j2
#
- name: write the yum config file to pull from our RHEL-OSP yum repo cache if installing on RHEL 7
template: src=config/rhel_osp.repo.j2 dest=/etc/yum.repos.d/local_osp.repo
when: (ansible_distribution == "RedHat" and ansible_distribution_major_version == "7")
- name: write the yum config file to pull from our RDO Liberty yum repo cache if installing on CentOS 7
template: src=config/centos_rdo.repo.j2 dest=/etc/yum.repos.d/local_rdo.repo
when: (ansible_distribution == "CentOS" and ansible_distribution_major_version == "7")
- name: Set our Yum Priorities on RHEL OSP 7
command: yum-config-manager \
--setopt="rhel-7-server-openstack-8.priority=1" \
--setopt="rhel-7-server-openstack-8-director.priority=1"
when: (ansible_distribution == "RedHat" and ansible_distribution_major_version == "7")
- name: Set our Yum Priorities on CentOS 7 and RDO Mitaka
command: yum-config-manager \
--setopt="centos-7-openstack-mitaka.priority=1"
when: (ansible_distribution == "CentOS" and ansible_distribution_major_version == "7")