Skip to content

Commit 5b40d17

Browse files
Domas Monkus0x2b3bfa0
andauthored
Install leo on instances (#696)
After the landing of the tpi command split PR, the machine script was still downloading the terraform-provider-iterative release artifact. This caused the task to not be run properly. Co-authored-by: Helio Machado <0x2b3bfa0+git@googlemail.com>
1 parent 7a236ca commit 5b40d17

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

task/common/machine/machine-script.sh.tpl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ sudo tee /etc/systemd/system/tpi-task.service > /dev/null <<END
6161
WantedBy=default.target
6262
END
6363

64-
curl --location --remote-name https://github.com/iterative/terraform-provider-iterative/releases/latest/download/terraform-provider-iterative_linux_amd64
65-
# TODO: replace download location with https://github.com/iterative/terraform-provider-iterative/releases/latest/download/leo_linux_amd64
66-
sudo mv terraform-provider-iterative* /usr/bin/leo
64+
curl --location --remote-name https://github.com/iterative/terraform-provider-iterative/releases/latest/download/leo_linux_amd64
65+
sudo mv leo* /usr/bin/leo
6766
sudo chmod u=rwx,g=rx,o=rx /usr/bin/leo
6867
sudo chown root:root /usr/bin/leo
6968

task/common/machine/testdata/machine_script_full.golden

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ sudo tee /etc/systemd/system/tpi-task.service > /dev/null <<END
6161
WantedBy=default.target
6262
END
6363

64-
curl --location --remote-name https://github.com/iterative/terraform-provider-iterative/releases/latest/download/terraform-provider-iterative_linux_amd64
65-
# TODO: replace download location with https://github.com/iterative/terraform-provider-iterative/releases/latest/download/leo_linux_amd64
66-
sudo mv terraform-provider-iterative* /usr/bin/leo
64+
curl --location --remote-name https://github.com/iterative/terraform-provider-iterative/releases/latest/download/leo_linux_amd64
65+
sudo mv leo* /usr/bin/leo
6766
sudo chmod u=rwx,g=rx,o=rx /usr/bin/leo
6867
sudo chown root:root /usr/bin/leo
6968

task/common/machine/testdata/machine_script_minimal.golden

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ sudo tee /etc/systemd/system/tpi-task.service > /dev/null <<END
6161
WantedBy=default.target
6262
END
6363

64-
curl --location --remote-name https://github.com/iterative/terraform-provider-iterative/releases/latest/download/terraform-provider-iterative_linux_amd64
65-
# TODO: replace download location with https://github.com/iterative/terraform-provider-iterative/releases/latest/download/leo_linux_amd64
66-
sudo mv terraform-provider-iterative* /usr/bin/leo
64+
curl --location --remote-name https://github.com/iterative/terraform-provider-iterative/releases/latest/download/leo_linux_amd64
65+
sudo mv leo* /usr/bin/leo
6766
sudo chmod u=rwx,g=rx,o=rx /usr/bin/leo
6867
sudo chown root:root /usr/bin/leo
6968

0 commit comments

Comments
 (0)