Skip to content

Commit

Permalink
Remove netcat dependency by using curl instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Emil Flink authored and remche committed May 2, 2022
1 parent e1214cb commit 2de5e4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Unlike [RKE version](https://github.com/remche/terraform-openstack-rke) this mod

- [Terraform](https://www.terraform.io/) 0.13+
- [OpenStack](https://docs.openstack.org/zh_CN/user-guide/common/cli-set-environment-variables-using-openstack-rc.html) environment properly sourced
- A Openstack image fullfiling [RKE2 requirements](https://docs.rke2.io/install/requirements/) and featuring curl and nc
- A Openstack image fullfiling [RKE2 requirements](https://docs.rke2.io/install/requirements/) and featuring curl
- At least one Openstack floating IP

## Features
Expand Down
2 changes: 1 addition & 1 deletion modules/node/files/cloud-init.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ runcmd:
- /usr/local/bin/install-or-upgrade-rke2.sh
%{~ if is_server ~}
%{~ if bootstrap_server != "" ~}
- [ sh, -c, 'until (nc -z ${bootstrap_server} 6443); do echo Wait for master node && sleep 10; done;']
- [ sh, -c, 'until (curl -ksS -m 5 -o /dev/null https://${bootstrap_server}:6443); do echo Wait for master node && sleep 10; done;']
%{~ endif ~}
- systemctl enable rke2-server.service
- systemctl start rke2-server.service
Expand Down

0 comments on commit 2de5e4b

Please sign in to comment.