Skip to content

Commit

Permalink
Merge pull request #4307 from dmsimard/openshift-testing
Browse files Browse the repository at this point in the history
Support enabling the centos-openshift-origin-testing repository
  • Loading branch information
sdodson authored Jul 24, 2017
2 parents a095a16 + b48887e commit ac8f778
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion inventory/byo/hosts.origin.example
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,9 @@ openshift_release=v3.6
# modify image streams to point at that registry by setting the following to true
#openshift_examples_modify_imagestreams=true

# Origin copr repo
# OpenShift repository configuration
#openshift_additional_repos=[{'id': 'openshift-origin-copr', 'name': 'OpenShift Origin COPR', 'baseurl': 'https://copr-be.cloud.fedoraproject.org/results/maxamillion/origin-next/epel-7-$basearch/', 'enabled': 1, 'gpgcheck': 1, 'gpgkey': 'https://copr-be.cloud.fedoraproject.org/results/maxamillion/origin-next/pubkey.gpg'}]
#openshift_repos_enable_testing=false

# htpasswd auth
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
Expand Down
3 changes: 2 additions & 1 deletion inventory/byo/hosts.ose.example
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ openshift_release=v3.6
# modify image streams to point at that registry by setting the following to true
#openshift_examples_modify_imagestreams=true

# Additional yum repos to install
# OpenShift repository configuration
#openshift_additional_repos=[{'id': 'ose-devel', 'name': 'ose-devel', 'baseurl': 'http://example.com/puddle/build/AtomicOpenShift/3.1/latest/RH7-RHOSE-3.0/$basearch/os', 'enabled': 1, 'gpgcheck': 0}]
#openshift_repos_enable_testing=false

# htpasswd auth
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
Expand Down
1 change: 1 addition & 0 deletions roles/openshift_repos/defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
---
openshift_additional_repos: {}
openshift_repos_enable_testing: false
6 changes: 5 additions & 1 deletion roles/openshift_repos/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# "centos-release-openshift-origin" package which configures the repository.
# This task matches the file names provided by the package so that they are
# not installed twice in different files and remains idempotent.
- name: Configure origin gpg keys if needed
- name: Configure origin repositories and gpg keys if needed
copy:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
Expand All @@ -49,6 +49,10 @@
- openshift_deployment_type == 'origin'
- openshift_enable_origin_repo | default(true) | bool

- name: Enable centos-openshift-origin-testing repository
command: yum-config-manager --enable centos-openshift-origin-testing
when: openshift_repos_enable_testing | bool

- name: Ensure clean repo cache in the event repos have been changed manually
debug:
msg: "First run of openshift_repos"
Expand Down

0 comments on commit ac8f778

Please sign in to comment.