Skip to content

Commit a7651d5

Browse files
committed
feat: remove openstack metadata
1 parent 7f5a2dc commit a7651d5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

node/cloud-init.yaml.tpl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ packages:
2424
- ncdu
2525
- htop
2626
- curl
27-
- jq
2827
- logrotate
2928
- nfs-client
3029
- fio
@@ -85,9 +84,6 @@ write_files:
8584
export INSTALL_RKE2_VERSION=${rke2_version}
8685
which rke2 >/dev/null 2>&1 && RKE2_VERSION=$(rke2 --version | head -1 | cut -f 3 -d " ")
8786
if ([ -z "$RKE2_VERSION" ]) || ([ -n "$INSTALL_RKE2_VERSION" ] && [ "$INSTALL_RKE2_VERSION" != "$RKE2_VERSION" ]); then
88-
RKE2_ROLE=$(curl -s http://169.254.169.254/openstack/2012-08-10/meta_data.json | jq -r '.meta.rke2_role')
89-
RKE2_SERVICE="rke2-$RKE2_ROLE.service"
90-
echo "Installing RKE2 $INSTALL_RKE2_VERSION with $RKE2_ROLE role"
9187
curl -sfL https://get.rke2.io | sh -
9288
fi
9389
%{ if is_server ~}

0 commit comments

Comments
 (0)