Skip to content

Commit

Permalink
Install leo on instances (#696)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
tasdomas and 0x2b3bfa0 authored Oct 14, 2022
1 parent 7a236ca commit 5b40d17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions task/common/machine/machine-script.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ sudo tee /etc/systemd/system/tpi-task.service > /dev/null <<END
WantedBy=default.target
END

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

Expand Down
5 changes: 2 additions & 3 deletions task/common/machine/testdata/machine_script_full.golden
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ sudo tee /etc/systemd/system/tpi-task.service > /dev/null <<END
WantedBy=default.target
END

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

Expand Down
5 changes: 2 additions & 3 deletions task/common/machine/testdata/machine_script_minimal.golden
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ sudo tee /etc/systemd/system/tpi-task.service > /dev/null <<END
WantedBy=default.target
END

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

Expand Down

0 comments on commit 5b40d17

Please sign in to comment.