Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nocturnalastro committed Sep 6, 2022
1 parent 349a96d commit 3150ff2
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 21 deletions.
6 changes: 3 additions & 3 deletions playbooks/deploy_registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
- role: setup_selfsigned_cert
when:
- SETUP_REGISTRY_SERVICE == True
- not (deploy_supported_registry | bool)
- not ((deploy_supported_registry | default(false)) | bool)
- role: setup_mirror_registry
when:
- SETUP_REGISTRY_SERVICE == True
- not (deploy_supported_registry | bool)
- not ((deploy_supported_registry | default(false)) | bool)
- role: setup_mirror_registry_supported
when:
- SETUP_REGISTRY_SERVICE == True
- deploy_supported_registry | bool
- (deploy_supported_registry | default(false)) | bool


- import_playbook: populate_registry.yml
30 changes: 15 additions & 15 deletions roles/generate_manifests/templates/agent-config.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#jinja2:trim_blocks: True, lstrip_blocks: True
apiVersion: v1alpha1
kind: AgentConfig
metadata:
labels:
cluster-name: {{ cluster_name }}
spec:
{% if billi_bootstrap_node is defined %}
rendezvousIP: {{ hostvars[billi_bootstrap_node]['ansible_host'] }}
{% if billi_bootstrap_node is defined %}
rendezvousIP: {{ hostvars[billi_bootstrap_node]['ansible_host'] }}
{% endif %}
hosts:
{% for hostname, network_config in static_network_config.items() %}
- role: {{ hostvars[hostname]['role'] }}
hostname: {{ hostname }}
interfaces:
- name: {{ network_config.mac_interface_map[0].logical_nic_name }}
macAddress: {{ network_config.mac_interface_map[0].mac_address }}
{% if hostvars[hostname]['installation_disk_path'] is defined %}
rootDeviceHints:
deviceName: {{ hostvars[hostname]['installation_disk_path'] }}
{% endif %}
hosts:
{% for hostname, network_config in static_network_config.items() %}
- role: {{ hostvars[hostname]['role'] }}
hostname: {{ hostname }}
interfaces:
- name: {{ network_config.mac_interface_map[0].logical_nic_name }}
macAddress: {{ network_config.mac_interface_map[0].mac_address }}
{% if hostvars[hostname]['installation_disk_path'] is defined %}
rootDeviceHints:
deviceName: {{ hostvars[hostname]['installation_disk_path'] }}
{% endif %}
{% endfor %}
{% endfor %}
2 changes: 2 additions & 0 deletions roles/generate_manifests/templates/infraenv.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ spec:
pullSecretRef:
name: pull-secret
sshAuthorizedKey: {{ ssh_public_key }}
additionalNTPSources:
- {{ ntp_server }}
nmStateConfigLabelSelector:
matchLabels:
cluster-name: {{ cluster_name }}
4 changes: 2 additions & 2 deletions roles/generate_manifests/templates/registries.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ unqualified-search-registries = ["registry.access.redhat.com", "docker.io"]
location = "quay.io/openshift-release-dev/ocp-release"
mirror-by-digest-only = false
[[registry.mirror]]
location = "{{ mirror_registry }}/origin/release-images"
location = "{{ mirror_registry }}/ocp4/openshift4"
[[registry]]
prefix = ""
location = "quay.io/openshift-release-dev/ocp-v4.0-art-dev"
mirror-by-digest-only = false
[[registry.mirror]]
location = "{{ mirror_registry }}/origin"
location = "{{ mirror_registry }}/ocp4/openshift4"
[[registry]]
prefix = ""
location = "k8s.gcr.io/pause"
Expand Down
3 changes: 2 additions & 1 deletion roles/get_image_hash/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ release_images_defaults:
cpu_architecture: x86_64
# url: registry.ci.openshift.org/origin/release:4.11
# url: "{{ mirror_registry }}/origin/openshift/release-images:4.11"
url: quay.io/openshift-release-dev/ocp-release:4.11.0-x86_64
# url: quay.io/openshift-release-dev/ocp-release:4.11.0-x86_64
url: quay.io/openshift-release-dev/ocp-release@sha256:300bce8246cf880e792e106607925de0a404484637627edf5f517375517d54a4
version: 4.11.0

release_images: "{{ release_images_defaults }}"
Expand Down

0 comments on commit 3150ff2

Please sign in to comment.