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 a0316ab
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions scripts/06_deploy_openshift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,16 @@ 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
export AI_URL=[{{ rendezvous_ip|default(baremetal_ips[0]) }}]:8090
aicli wait cluster -s installing {{ cluster }}
SNO_IP=$(aicli list host | grep '|' | tail -1 | cut -d'|' -f8 | xargs)
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 a0316ab

Please sign in to comment.