File tree Expand file tree Collapse file tree 7 files changed +130
-0
lines changed
roles/unsupported_operators Expand file tree Collapse file tree 7 files changed +130
-0
lines changed Original file line number Diff line number Diff line change 1+ # roles/unsupported_operators
2+
3+ ## This role modifies registry.conf on machine config so that operators can be pulled by tag.
4+
5+ > Before running this role:
6+ #### ` registry_fqdn: ` in ` defaults/main.yml ` should be set to users' registry FQDN, EX: ` registry_fqdn: registry.sparta.rht-set.com `
Original file line number Diff line number Diff line change 1+ ---
2+ registry_fqdn :
Original file line number Diff line number Diff line change 1+ ---
2+ - name : apply machine config
3+ community.kubernetes.k8s :
4+ definition : " {{ lookup('template', 'templates/machine_config.j2') | from_yaml }}"
Original file line number Diff line number Diff line change 1+ ---
2+ - name : ' {{ ansible_module | role:include_tasks | registry.yaml }}'
3+ include_tasks : registry.yaml
4+
5+ - name : ' {{ ansible_module | role:include_tasks | machine_config.yaml }}'
6+ include_tasks : machine_config.yaml
Original file line number Diff line number Diff line change 1+ ---
2+ - name : encode registry.conf
3+ set_fact :
4+ encoded_registry_conf : " {{ lookup('template', 'templates/registry.conf.j2') | b64encode }}"
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion: machineconfiguration.openshift.io/v1
3+ kind: MachineConfig
4+ metadata:
5+ annotations:
6+ labels:
7+ machineconfiguration.openshift.io/role: worker
8+ name: 99-zworker-container-registry-conf
9+ spec:
10+ config:
11+ ignition:
12+ version: 3.2.0
13+ storage:
14+ files:
15+ - contents:
16+ source: data:text/plain;charset=utf-8;base64,{{ encoded_registry_conf }}
17+ verification: {}
18+ filesystem: root
19+ mode: 420
20+ overwrite: true
21+ path: /etc/containers/registries.conf
22+ extensions: null
23+ fips: false
24+ kernelArguments: null
25+ kernelType: ""
26+ osImageURL: ""
Original file line number Diff line number Diff line change 1+ unqualified-search-registries = ["registry.access.redhat.com", "docker.io"]
2+
3+ [[registry]]
4+ prefix = ""
5+ location = "quay.io/openshift-release-dev/ocp-release"
6+ mirror-by-digest-only = false
7+
8+ [[registry.mirror]]
9+ location = "{{ registry_fqdn }}:5000/openshift-release-dev"
10+
11+ [[registry]]
12+ prefix = ""
13+ location = "quay.io/openshift-release-dev/ocp-v4.0-art-dev"
14+ mirror-by-digest-only = false
15+
16+ [[registry.mirror]]
17+ location = "{{ registry_fqdn }}:5000/openshift-release-dev"
18+
19+ [[registry]]
20+ prefix = ""
21+ location = "registry.redhat.io"
22+ mirror-by-digest-only = false
23+ insecure = true
24+
25+ [[registry.mirror]]
26+ location = "{{ registry_fqdn }}:5000"
27+ insecure = true
28+
29+ [[registry]]
30+ prefix = ""
31+ location = "quay.io"
32+ mirror-by-digest-only = false
33+ insecure = true
34+
35+ [[registry.mirror]]
36+ location = "{{ registry_fqdn }}:5000"
37+ insecure = true
38+
39+ [[registry]]
40+ prefix = ""
41+ location = "docker.io"
42+ mirror-by-digest-only = false
43+ insecure = true
44+
45+ [[registry.mirror]]
46+ location = "{{ registry_fqdn }}:5000"
47+ insecure = true
48+
49+ [[registry]]
50+ prefix = ""
51+ location = "registry.connect.redhat.com"
52+ mirror-by-digest-only = false
53+ insecure = true
54+
55+ [[registry.mirror]]
56+ location = "{{ registry_fqdn }}:5000"
57+ insecure = true
58+
59+ [[registry]]
60+ prefix = ""
61+ location = "gcr.io"
62+ mirror-by-digest-only = false
63+ insecure = true
64+
65+ [[registry.mirror]]
66+ location = "{{ registry_fqdn }}:5000"
67+ insecure = true
68+
69+ [[registry]]
70+ prefix = ""
71+ location = "registry.access.redhat.com"
72+ mirror-by-digest-only = false
73+ insecure = true
74+
75+ [[registry.mirror]]
76+ location = "{{ registry_fqdn }}:5000"
77+ insecure = true
78+
79+ [[registry]]
80+ prefix = ""
81+ location = "{{ registry_fqdn }}:5000"
82+ insecure = true
You can’t perform that action at this time.
0 commit comments