Skip to content

Commit

Permalink
Allow to use registry-mirror with minishift
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Slebodnik committed Aug 10, 2020
1 parent ff8750e commit 7ce7526
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ or only certain components. ex. minishift, jenkins infra, pipeline containers,
* cpus: Number of cpus to use for minishift VM: default=2
* minishift_iso: ISO image to use : default=http://artifacts.ci.centos.org/fedora-atomic/minishift/iso/minishift.iso
* minishift_insecure_registry: Additional insecure registries : default="" (not used)
* minishift_registry_mirror: Optional mirror for registries : default="" (not used)

### oc setup options
* openshift_project: OpenShift project name : default:contra-sample-project
Expand Down
3 changes: 3 additions & 0 deletions playbooks/group_vars/all/global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ minishift_iso: https://github.com/minishift/minishift-centos-iso/releases/downlo
# Use comma separated values for more registries
minishift_insecure_registry: ""

# Value of minishift configutation option registry-mirror
minishift_registry_mirror: ""

# Update this to be the cluster IP of Openshift console
# Leave empty when using minishift
openshift_cluster_ip: ""
Expand Down
4 changes: 4 additions & 0 deletions playbooks/roles/minishift/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
shell: "{{ minishift_bin }} config set insecure-registry \"{{ minishift_insecure_registry }}\""
when: minishift_insecure_registry != ""

- name: "Set minishift minishift_registry_mirror"
shell: "{{ minishift_bin }} config set registry-mirror \"{{ minishift_registry_mirror }}\""
when: minishift_registry_mirror != ""

- name: "Set minishift skip-check-openshift-version"
shell: "{{ minishift_bin }} config set skip-check-openshift-version true"
when: minishift_version != "v1.12.0"
Expand Down

0 comments on commit 7ce7526

Please sign in to comment.