File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343 state : present
4444 when : not staticips and not ppc64le
4545
46+ - name : Copy mirror-isc.yaml
47+ copy :
48+ src : ../templates/mirror-isc.yaml.j2
49+ dest : /usr/local/src/mirror-isc.yaml
50+ mode : " 0655"
51+ owner : root
52+ group : root
53+
54+ - name : Downloading oc-mirror package
55+ get_url :
56+ url : " {{ oc_mirror_source }}"
57+ dest : /usr/local/bin/oc-mirror.tar.gz
58+ mode : " 0644"
59+ when : download_imgs or force_ocp_download
60+
61+ - name : Unarchiving oc-mirror package
62+ unarchive :
63+ src : /usr/local/bin/oc-mirror.tar.gz
64+ dest : /usr/local/bin
65+ remote_src : yes
66+ creates : " {{ oc_mirror_bin }}"
67+
68+ - name : Set executable permission on oc-mirror
69+ file :
70+ path : " /usr/local/bin/{{ oc_mirror_bin }}"
71+ mode : " 0755"
72+ owner : root
73+ group : root
74+
75+ - name : Check oc-mirror version
76+ shell : " {{ oc_mirror_bin }} version --output=json --v2"
77+ register : oc_mirror_version
78+ changed_when : false
79+
4680 - name : Remove existing config files
4781 import_tasks : remove_old_config_files.yaml
4882 when : remove_old_config_files
Original file line number Diff line number Diff line change 120120 args :
121121 creates : ~/.openshift/pull-secret-updated
122122
123+ - name : Store Release Digest Value
124+ shell : |
125+ openshift-install version | grep "release image" | awk -F'@' '{print $2}' | sed 's/:/-/g'
126+ register : RELEASE_DIGEST
127+
128+ - name : Retrieve sig file
129+ shell : |
130+ oc image mirror \
131+ -a ~/.openshift/pull-secret-updated \
132+ {{ setup_registry.remote_registry | default('quay.io') }}/{{ setup_registry.product_repo }}/{{ setup_registry.release_name }}:{{ RELEASE_DIGEST.stdout }}.sig \
133+ {{ local_registry }}/{{ setup_registry.local_repo }}:{{ RELEASE_DIGEST.stdout }}.sig \
134+ --force=false --continue-on-error
135+ register : sig_output
136+
123137 - name : Mirror the registry
124138 when : setup_registry.autosync_registry
125139 shell : oc adm -a ~/.openshift/pull-secret-updated release mirror \
Original file line number Diff line number Diff line change 1+ kind: ImageSetConfiguration
2+ apiVersion: mirror.openshift.io/v2alpha1
3+ mirror:
4+ platform:
5+ architectures:
6+ - "ppc64le"
7+ channels:
8+ - name: {{ setup_registry.ocp_channel_name }}
9+ minVersion: {{ setup_registry.ocp_min_version }}
10+ maxVersion: {{ setup_registry.ocp_max_version }}
11+ type: ocp
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ ocp_initramfs: "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos
1010ocp_install_kernel : " https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.9/4.9.0/rhcos-4.9.0-x86_64-live-kernel-x86_64"
1111ocp_client : " https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.9.18/openshift-client-linux-4.9.18.tar.gz"
1212ocp_installer : " https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.9.18/openshift-install-linux-4.9.18.tar.gz"
13+ oc_mirror_source : " https://mirror.openshift.com/pub/openshift-v4/ppc64le/clients/ocp/stable-4.20/oc-mirror.tar.gz"
14+ oc_mirror_bin : " oc-mirror"
15+ oc_mirror_cmd : " /usr/local/bin/oc-mirror"
1316helm_source : " https://get.helm.sh/helm-v3.6.3-linux-amd64.tar.gz"
1417download_imgs : true
1518chars : (\\_|\\$|\\\|\\/|\\=|\\)|\\(|\\&|\\^|\\%|\\$|\\#|\\@|\\!|\\*)
@@ -27,6 +30,9 @@ setup_registry:
2730 release_tag : " 4.9.18-x86_64"
2831 registry_user : " admin"
2932 registry_password : " admin"
33+ ocp_channel_name : " stable-4.20"
34+ ocp_min_version : " 4.20.2"
35+ ocp_max_version : " 4.20.2"
3036machineconfig_path : ../machineconfig
3137fips : false
3238secure_named : false
You can’t perform that action at this time.
0 commit comments