Skip to content

Commit

Permalink
support single node
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Jul 29, 2024
1 parent 9eefb08 commit 2ad5803
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion envfiles/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ export PATH=/usr/local/bin:/root/bin:$PATH
export REGISTRY_PASSWORD={{ disconnected_password }}
export REGISTRY_USER={{ disconnected_user }}
export PYTHONUNBUFFERED=true
export AI_URL=[{{ rendezvous_ip|default(baremetal_ips[0]) }}]:8090
export AI_URL={{ rendezvous_ip|default(baremetal_ips[0])|ipv6_wrap }}:8090
2 changes: 1 addition & 1 deletion plans/kcli_plan_infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{% endif %}
{% endif %}

{% if lab or (baremetal_ips and baremetal_ips|length >0) %}
{% if api_ip != None ingress_ip != None and (lab or (baremetal_ips and baremetal_ips|length >0)) %}
api:
type: dns
net: {{ baremetal_net }}
Expand Down
11 changes: 5 additions & 6 deletions scripts/06_deploy_openshift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,14 @@ echo $IP | grep -q ':' && IP=[$IP]
kcli start baremetal-host -P url={{ url }} -P user={{ user }} -P password={{ password }} -P iso_url=http://$IP/{{ cluster }}.iso
{% endfor %}

openshift-install wait-for install-complete --dir ocp --log-level debug

{% if hosts|length == 1 %}
# SNO_IP=$(aicli list host | grep '|' | tail -1 | cut -d'|' -f8 | xargs)
#sed -i /"{{ api_ip }} api.{{ cluster }}.{{ domain }}"/d /etc/hosts
# echo $SNO_IP api.{{ cluster }}.{{ domain }} >> /etc/hosts
echo DO SNO STUFF
SNO_IP={{ rendezvous_ip|default(baremetal_ips[0]) }}
sed -i /api.{{ cluster }}.{{ domain }}/d /etc/hosts
echo $SNO_IP api.{{ cluster }}.{{ domain }} >> /etc/hosts
{% endif %}

openshift-install wait-for install-complete --dir ocp --log-level debug

{% if virtual_ctlplanes %}
for node in $(oc get nodes --selector='node-role.kubernetes.io/master' -o name) ; do
oc label $node node-role.kubernetes.io/virtual=""
Expand Down

0 comments on commit 2ad5803

Please sign in to comment.